File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -128,4 +128,4 @@ jobs:
128128
129129       - name : " Run tox" 
130130        run : | 
131-           python -m tox -- -rfsEX 
131+           python -m tox -v - - -rfsEX 
Original file line number Diff line number Diff line change 4040else :
4141    PYPYVERSION  =  (0 ,)
4242
43+ # Do we have a GIL? 
44+ GIL  =  getattr (sys , '_is_gil_enabled' , lambda : True )()
45+ 
4346# Python behavior. 
4447class  PYBEHAVIOR :
4548    """Flags indicating this Python's behavior.""" 
Original file line number Diff line number Diff line change @@ -210,9 +210,16 @@ def once(x):                                        # line 301
210210        if  fails  >  8 :
211211            pytest .fail ("RAM grew by %d"  %  (ram_growth ))      # pragma: only failure 
212212
213-     @pytest .mark .skipif (not  testenv .C_TRACER , reason = "Only the C tracer has refcounting issues" ) 
214-     # In fact, sysmon explicitly holds onto all code objects, 
215-     # so this will definitely fail with sysmon. 
213+     @pytest .mark .skipif ( 
214+         not  testenv .C_TRACER , 
215+         reason = "Only the C tracer has refcounting issues" , 
216+         # In fact, sysmon explicitly holds onto all code objects,  
217+         # so this will definitely fail with sysmon.  
218+     ) 
219+     @pytest .mark .skipif ( 
220+         env .PYVERSION [:2 ] ==  (3 , 13 ) and  not  env .GIL , 
221+         reason  =  "3.13t never frees code objects: https://github.com/python/cpython/pull/131989" , 
222+     ) 
216223    @pytest .mark .parametrize ("branch" , [False , True ]) 
217224    def  test_eval_codeobject_leak (self , branch : bool ) ->  None :
218225        # https://github.com/nedbat/coveragepy/issues/1924 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments