Skip to content

Commit e9da7e4

Browse files
committed
Fix _make_cold in benchmarks
1 parent 92a7a46 commit e9da7e4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

benchmarks/specifiers.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,17 @@ def _make_cold(self, spec: SpecifierSet) -> None:
6060
spec._canonicalized = False
6161
if hasattr(spec, "_resolved_ops"):
6262
spec._resolved_ops = None
63+
if hasattr(spec, "_ranges"):
64+
spec._ranges = None
65+
if hasattr(spec, "_is_unsatisfiable"):
66+
spec._is_unsatisfiable = None
6367
for sp in spec._specs:
6468
sp._spec_version = None
6569
if hasattr(sp, "_wildcard_split"):
6670
sp._wildcard_split = None
71+
if hasattr(sp, "_ranges"):
72+
sp._ranges = None
73+
6774

6875
@add_attributes(pretty_name="SpecifierSet constructor")
6976
def time_constructor(self) -> None:

0 commit comments

Comments
 (0)