From: Tim Peters Date: Sat, 15 Jun 2002 05:00:42 +0000 (+0000) Subject: test_module_with_large_stack(): This failed on Windows, for the wrong X-Git-Tag: v2.3c1~5303 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06727123db954c6dd79b5db9348b36927f604a27;p=thirdparty%2FPython%2Fcpython.git test_module_with_large_stack(): This failed on Windows, for the wrong reason : can't unlink an open file on Windows. --- diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 1246822bfa80..9342812da32e 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') -