Skip to content

Commit 707018c

Browse files
gh-107630: Fix Remaining Subinterpreters Crashes on Py_TRACE_REFS Builds (gh-107750)
This is a follow-up to gh-107567 and gh-107733. We skip test_basic_multiple_interpreters_deleted_no_reset on tracerefs builds. The test breaks interpreter isolation a little, which doesn't work well with Py_TRACE_REFS builds, so I feel fine about skipping the test.
1 parent 5dc825d commit 707018c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/test_import/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,6 +2555,12 @@ def test_basic_multiple_interpreters_main_no_reset(self):
25552555
def test_basic_multiple_interpreters_deleted_no_reset(self):
25562556
# without resetting; already loaded in a deleted interpreter
25572557

2558+
if hasattr(sys, 'getobjects'):
2559+
# It's a Py_TRACE_REFS build.
2560+
# This test breaks interpreter isolation a little,
2561+
# which causes problems on Py_TRACE_REF builds.
2562+
raise unittest.SkipTest('crashes on Py_TRACE_REFS builds')
2563+
25582564
# At this point:
25592565
# * alive in 0 interpreters
25602566
# * module def may or may not be loaded already

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy