8000 Update Lib/test/test_import/__init__.py · python/cpython@a0f5bb7 · GitHub
[go: up one dir, main page]

Skip to content

Commit a0f5bb7

Browse files
Update Lib/test/test_import/__init__.py
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
1 parent daebdf7 commit a0f5bb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_import/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2389,7 +2389,7 @@ def test_with_reinit_reloaded(self):
23892389
loaded = self.load(name)
23902390
reloaded = self.re_load(name, loaded.module)
23912391

2392-
if name == f'{self.NAME}_with_state':
2392+
if name.endswith("_with_state"):
23932393
self.addCleanup(loaded.module._clear_module_state)
23942394
self.addCleanup(reloaded.module._clear_module_state)
23952395

0 commit comments

Comments
 (0)
0