File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ def test_invalidate_object(self):
65
65
func_src = "\n " .join (
66
66
f"""
67
67
def f{ n } ():
68
- for _ in range(1000 ):
68
+ for _ in range({ TIER2_THRESHOLD } ):
69
69
pass
70
70
""" for n in range (5 )
71
71
)
@@ -98,9 +98,9 @@ def f{n}():
98
98
def test_uop_optimizer_invalidation (self ):
99
99
# Generate a new function at each call
100
100
ns = {}
101
- exec (textwrap .dedent ("""
101
+ exec (textwrap .dedent (f """
102
102
def f():
103
- for i in range(1000 ):
103
+ for i in range({ TIER2_THRESHOLD } ):
104
104
pass
105
105
""" ), ns , ns )
106
106
f = ns ['f' ]
@@ -115,7 +115,7 @@ def f():
115
115
116
116
def test_sys__clear_internal_caches (self ):
117
117
def f ():
118
- for _ in range (1000 ):
118
+ for _ in range (TIER2_THRESHOLD ):
119
119
pass
120
120
opt = _testinternalcapi .new_uop_optimizer ()
121
121
with temporary_optimizer (opt ):
You can’t perform that action at this time.
0 commit comments