summaryrefslogtreecommitdiff
path: root/Lib/test/test_import.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_import.py')
-rw-r--r--Lib/test/test_import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index 1246822bfa..9342812da3 100644
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -91,6 +91,7 @@ def test_module_with_large_stack(module):
# compile & remove .py file, we only need .pyc
f = open(filename, 'r')
py_compile.compile(filename)
+ f.close()
os.unlink(filename)
# need to be able to load from current dir
@@ -104,4 +105,3 @@ def test_module_with_large_stack(module):
os.unlink(module + '.pyc')
test_module_with_large_stack('longlist')
-