File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 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):
6565 func_src = "\n " .join (
6666 f"""
6767 def f{ n } ():
68- for _ in range(1000 ):
68+ for _ in range({ TIER2_THRESHOLD } ):
6969 pass
7070 """ for n in range (5 )
7171 )
@@ -98,9 +98,9 @@ def f{n}():
9898 def test_uop_optimizer_invalidation (self ):
9999 # Generate a new function at each call
100100 ns = {}
101- exec (textwrap .dedent ("""
101+ exec (textwrap .dedent (f """
102102 def f():
103- for i in range(1000 ):
103+ for i in range({ TIER2_THRESHOLD } ):
104104 pass
105105 """ ), ns , ns )
106106 f = ns ['f' ]
@@ -115,7 +115,7 @@ def f():
115115
116116 def test_sys__clear_internal_caches (self ):
117117 def f ():
118- for _ in range (1000 ):
118+ for _ in range (TIER2_THRESHOLD ):
119119 pass
120120 opt = _testinternalcapi .new_uop_optimizer ()
121121 with temporary_optimizer (opt ):
You can’t perform that action at this time.
0 commit comments