Skip to content

Commit

Permalink
Update Lib/test/test_import/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
  • Loading branch information
sunmy2019 and erlend-aasland authored May 30, 2023
1 parent daebdf7 commit a0f5bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_import/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2389,7 +2389,7 @@ def test_with_reinit_reloaded(self):
loaded = self.load(name)
reloaded = self.re_load(name, loaded.module)

if name == f'{self.NAME}_with_state':
if name.endswith("_with_state"):
self.addCleanup(loaded.module._clear_module_state)
self.addCleanup(reloaded.module._clear_module_state)

Expand Down

0 comments on commit a0f5bb7

Please # to comment.