Skip to content

Commit

Permalink
rebase after changes to python#105085
Browse files Browse the repository at this point in the history
  • Loading branch information
sunmy2019 committed Jun 1, 2023
1 parent 75230b0 commit 695fd16
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Lib/test/test_import/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2327,8 +2327,6 @@ def test_variants(self):
self.assertIs(basic.look_up_self(), basic_lookedup)
self.assertEqual(basic.initialized_count(), expected_init_count)

loaded.module._clear_module_state()

def test_basic_reloaded(self):
# m_copy is copied into the existing module object.
# Global state is not changed.
Expand Down Expand Up @@ -2417,11 +2415,6 @@ def test_with_reinit_reloaded(self):

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

if hasattr(loaded.module, '_clear_module_state'):
loaded.module._clear_module_state()
if hasattr(reloaded.module, '_clear_module_state'):
reloaded.module._clear_module_state()

# Currently, for every single-phrase init module loaded
# in multiple interpreters, those interpreters share a
# PyModuleDef for that object, which can be a problem.
Expand Down

0 comments on commit 695fd16

Please sign in to comment.