We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3930353 + 857daa8 commit 6530f42Copy full SHA for 6530f42
testing/test_unraisableexception.py
@@ -321,6 +321,9 @@ def test_refcycle_unraisable_warning_filter_default(pytester: Pytester) -> None:
321
# see: https://github.com/pytest-dev/pytest/pull/13057#discussion_r1888396126
322
pytester.makepyfile(
323
test_it="""
324
+ import gc
325
+ gc.disable()
326
+
327
import pytest
328
329
class BrokenDel:
@@ -335,8 +338,8 @@ def test_it():
335
338
"""
336
339
)
337
340
- with _disable_gc():
- result = pytester.runpytest_subprocess("-Wdefault")
341
+ # since we use subprocess we need to disable gc inside test_it
342
+ result = pytester.runpytest_subprocess("-Wdefault")
343
344
assert result.ret == pytest.ExitCode.OK
345
0 commit comments