From 6252b3a78e6ea17b9474fb38da5e49c78868d1ff Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 28 Oct 2025 18:05:03 +0100 Subject: [PATCH] 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 --- Lib/test/test_import/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py index 064188c23f54fd..8f3fd8ec2c35f9 100644 --- a/Lib/test/test_import/__init__.py +++ b/Lib/test/test_import/__init__.py @@ -3179,6 +3179,7 @@ def test_check_state_first(self): # 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