]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-107630: Fix Remaining Subinterpreters Crashes on Py_TRACE_REFS Builds (gh-107750)
authorEric Snow <ericsnowcurrently@gmail.com>
Mon, 7 Aug 2023 23:10:57 +0000 (17:10 -0600)
committerGitHub <noreply@github.com>
Mon, 7 Aug 2023 23:10:57 +0000 (17:10 -0600)
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.

Lib/test/test_import/__init__.py

index 163ed824ff1fb08c2f678d56ff7a6b6219899a6b..051711bfd1fe2420621baf124a530b4ab19078ff 100644 (file)
@@ -2555,6 +2555,12 @@ class SinglephaseInitTests(unittest.TestCase):
     def test_basic_multiple_interpreters_deleted_no_reset(self):
         # without resetting; already loaded in a deleted interpreter
 
+        if hasattr(sys, 'getobjects'):
+            # It's a Py_TRACE_REFS build.
+            # This test breaks interpreter isolation a little,
+            # which causes problems on Py_TRACE_REF builds.
+            raise unittest.SkipTest('crashes on Py_TRACE_REFS builds')
+
         # At this point:
         #  * alive in 0 interpreters
         #  * module def may or may not be loaded already