]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-140657: Don't rerun test_import single phase init test (GH-140712) (#140714)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 28 Oct 2025 17:29:44 +0000 (18:29 +0100)
committerGitHub <noreply@github.com>
Tue, 28 Oct 2025 17:29:44 +0000 (17:29 +0000)
gh-140657: Don't rerun test_import single phase init test (GH-140712)

test_basic_multiple_interpreters_main_no_reset() leaks memory:
import_in_subinterp() is called with postcleanup=False.
(cherry picked from commit c6d4c79c9abac5c5cc2e7b429d72946d15c5e132)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_import/__init__.py

index 064188c23f54fdd74f5264d3e8b523f29f58eada..8f3fd8ec2c35f9f97aa42fc3a39dfaae540e22ea 100644 (file)
@@ -3179,6 +3179,7 @@ class SinglephaseInitTests(unittest.TestCase, ExtraAssertions):
     # 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