Skip to content

Commit 6eb6e60

Browse files
Skip test_basic_multiple_interpreters_deleted_no_reset on tracerefs builds.
1 parent 24a455a commit 6eb6e60

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/test_import/__init__.py

+6
Original file line numberDiff line numberDiff line change
@@ -2539,6 +2539,12 @@ def test_basic_multiple_interpreters_main_no_reset(self):
25392539
def test_basic_multiple_interpreters_deleted_no_reset(self):
25402540
# without resetting; already loaded in a deleted interpreter
25412541

2542+
if hasattr(sys, 'getobjects'):
2543+
# It's a Py_TRACE_REFS build.
2544+
# This test breaks interpreter isolation a little,
2545+
# which causes problems on Py_TRACE_REF builds.
2546+
raise unittest.SkipTest('crashes on Py_TRACE_REFS builds')
2547+
25422548
# At this point:
25432549
# * alive in 0 interpreters
25442550
# * module def may or may not be loaded already

0 commit comments

Comments
 (0)