We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62a3a15 commit 46366caCopy full SHA for 46366ca
Lib/test/test_tools/test_sundry.py
@@ -19,17 +19,11 @@ class TestSundryScripts(unittest.TestCase):
19
# cleanly the logging module.
20
@import_helper.mock_register_at_fork
21
def test_sundry(self, mock_os):
22
- old_modules = import_helper.modules_setup()
23
- try:
24
- for fn in os.listdir(scriptsdir):
25
- if not fn.endswith('.py'):
26
- continue
27
-
28
- name = fn[:-3]
29
- import_tool(name)
30
- finally:
31
- # Unload all modules loaded in this test
32
- import_helper.modules_cleanup(*old_modules)
+ for fn in os.listdir(scriptsdir):
+ if not fn.endswith('.py'):
+ continue
+ name = fn[:-3]
+ import_tool(name)
33
34
35
if __name__ == '__main__':
0 commit comments