Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c87e29 commit e048797Copy full SHA for e048797
1 file changed
Lib/test/test_import.py
@@ -128,6 +128,7 @@ def test_imp_module(self):
128
orig_getenv = os.getenv
129
with EnvironmentVarGuard():
130
x = imp.find_module("os")
131
+ self.addCleanup(x[0].close)
132
new_os = imp.load_module("os", *x)
133
self.assertIs(os, new_os)
134
self.assertIs(orig_path, new_os.path)
0 commit comments