mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[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:
parent
bec053c184
commit
a026f02fd4
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue