]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-140657: Don't rerun test_import single phase init test (GH-140712)
authorVictor Stinner <vstinner@python.org>
Tue, 28 Oct 2025 17:05:03 +0000 (18:05 +0100)
committerGitHub <noreply@github.com>
Tue, 28 Oct 2025 17:05:03 +0000 (18:05 +0100)
test_basic_multiple_interpreters_main_no_reset() leaks memory:
import_in_subinterp() is called with postcleanup=False.

Lib/test/test_import/__init__.py

index b71a36ec2f7aab4604000e56feb4e10848683860..95121debbbfa74e9d69f6a34e95e41004ec6b414 100644 (file)
@@ -3160,6 +3160,7 @@ class SinglephaseInitTests(unittest.TestCase):
     # Also, we test with a single-phase module that has global state,
     # which is shared by all interpreters.
 
+    @no_rerun(reason="module state is not cleared (see gh-140657)")
     @requires_subinterpreters
     def test_basic_multiple_interpreters_main_no_reset(self):
         # without resetting; already loaded in main interpreter