File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -348,12 +348,12 @@ def test_simple_initialization_api(self):
348
348
@support .requires_specialization
349
349
def test_specialized_static_code_gets_unspecialized_at_Py_FINALIZE (self ):
350
350
# https://github.com/python/cpython/issues/92031
351
+ from test .test_dis import ADAPTIVE_WARMUP_DELAY
351
352
352
- code = textwrap .dedent ("""\
353
+ code = textwrap .dedent (f """\
353
354
import dis
354
355
import importlib._bootstrap
355
356
import opcode
356
- import test.test_dis
357
357
358
358
def is_specialized(f):
359
359
for instruction in dis.get_instructions(f, adaptive=True):
@@ -373,7 +373,7 @@ def is_specialized(f):
373
373
374
374
assert not is_specialized(func), "specialized instructions found"
375
375
376
- for i in range(test.test_dis. ADAPTIVE_WARMUP_DELAY):
376
+ for i in range({ ADAPTIVE_WARMUP_DELAY } ):
377
377
func(importlib._bootstrap, ["x"], lambda *args: None)
378
378
379
379
assert is_specialized(func), "no specialized instructions found"
You can’t perform that action at this time.
0 commit comments