Skip to content

Commit 9a4523b

Browse files
committed
Add decorator for skip if gil disabled
1 parent 3527d42 commit 9a4523b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_gc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,7 @@ def __del__(self):
801801
rc, out, err = assert_python_ok('-c', code)
802802
self.assertEqual(out.strip(), b'__del__ called')
803803

804+
@unittest.skipIf(Py_GIL_DISABLED, "requires GC generations or increments")
804805
def test_gc_debug_stats(self):
805806
# Checks that debug information is printed to stderr
806807
# when DEBUG_STATS is set.

0 commit comments

Comments
 (0)