File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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):
348348    @support .requires_specialization  
349349    def  test_specialized_static_code_gets_unspecialized_at_Py_FINALIZE (self ):
350350        # https://github.com/python/cpython/issues/92031 
351-         from  test .test_dis  import  ADAPTIVE_WARMUP_DELAY 
352351
353-         code  =  textwrap .dedent (f """\ 
352+         code  =  textwrap .dedent ("""\  
354353
355354            import importlib._bootstrap 
356355            import opcode 
356+             import test.test_dis 
357357
358358            def is_specialized(f): 
359359                for instruction in dis.get_instructions(f, adaptive=True): 
@@ -373,7 +373,7 @@ def is_specialized(f):
373373
374374            assert not is_specialized(func), "specialized instructions found" 
375375
376-             for i in range({ ADAPTIVE_WARMUP_DELAY }  
376+             for i in range(test.test_dis. ADAPTIVE_WARMUP_DELAY): 
377377                func(importlib._bootstrap, ["x"], lambda *args: None) 
378378
379379            assert is_specialized(func), "no specialized instructions found" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments