File tree 3 files changed +14
-4
lines changed
3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -128,4 +128,4 @@ jobs:
128
128
129
129
- name : " Run tox"
130
130
run : |
131
- python -m tox -- -rfsEX
131
+ python -m tox -v - - -rfsEX
Original file line number Diff line number Diff line change 40
40
else :
41
41
PYPYVERSION = (0 ,)
42
42
43
+ # Do we have a GIL?
44
+ GIL = getattr (sys , '_is_gil_enabled' , lambda : True )()
45
+
43
46
# Python behavior.
44
47
class PYBEHAVIOR :
45
48
"""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
210
210
if fails > 8 :
211
211
pytest .fail ("RAM grew by %d" % (ram_growth )) # pragma: only failure
212
212
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
+ )
216
223
@pytest .mark .parametrize ("branch" , [False , True ])
217
224
def test_eval_codeobject_leak (self , branch : bool ) -> None :
218
225
# https://github.com/nedbat/coveragepy/issues/1924
You can’t perform that action at this time.
0 commit comments