[3.13] gh-140657: Don't rerun test_import single phase init test (GH-140712) (#140714)

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 c6d4c79c9a)

Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
Miss Islington (bot) 2025-10-28 18:29:44 +01:00 committed by GitHub
parent bec053c184
commit a026f02fd4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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