]> granicus.if.org Git - python/commitdiff
test_module_with_large_stack(): This failed on Windows, for the wrong
authorTim Peters <tim.peters@gmail.com>
Sat, 15 Jun 2002 05:00:42 +0000 (05:00 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 15 Jun 2002 05:00:42 +0000 (05:00 +0000)
reason <wink>:  can't unlink an open file on Windows.

Lib/test/test_import.py

index 1246822bfa80586a5132cba8cc62295bfdde9928..9342812da32effaf73549204b00eba34f2c7a24a 100644 (file)
@@ -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')
-