Skip to content

Commit 695fd16

Browse files
committed
rebase after changes to #105085
1 parent 75230b0 commit 695fd16

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Lib/test/test_import/__init__.py

-7
Original file line numberDiff line numberDiff line change
@@ -2327,8 +2327,6 @@ def test_variants(self):
23272327
self.assertIs(basic.look_up_self(), basic_lookedup)
23282328
self.assertEqual(basic.initialized_count(), expected_init_count)
23292329

2330-
loaded.module._clear_module_state()
2331-
23322330
def test_basic_reloaded(self):
23332331
# m_copy is copied into the existing module object.
23342332
# Global state is not changed.
@@ -2417,11 +2415,6 @@ def test_with_reinit_reloaded(self):
24172415

24182416
self.assertIs(reloaded.snapshot.cached, reloaded.module)
24192417

2420-
if hasattr(loaded.module, '_clear_module_state'):
2421-
loaded.module._clear_module_state()
2422-
if hasattr(reloaded.module, '_clear_module_state'):
2423-
reloaded.module._clear_module_state()
2424-
24252418
# Currently, for every single-phrase init module loaded
24262419
# in multiple interpreters, those interpreters share a
24272420
# PyModuleDef for that object, which can be a problem.

0 commit comments

Comments
 (0)