One last precaution with temp files on Windows.
authorRobert Bradshaw <robertwb@math.washington.edu>
Tue, 17 Nov 2009 21:35:14 +0000 (13:35 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Tue, 17 Nov 2009 21:35:14 +0000 (13:35 -0800)
runtests.py

index c2033547485500d3cf729fc852f5f51be7c90166..5dc5ec32fbec4131fddee287ba96fe31698b07e6 100644 (file)
@@ -444,7 +444,8 @@ class CythonRunTestCase(CythonCompileTestCase):
                 raise Exception("Tests in module '%s' exited with status %d" %
                                 (module_name, result_code >> 8))
         finally:
-            os.unlink(result_file)
+            try: os.unlink(result_file)
+            except: pass
 
 
 is_private_field = re.compile('^_[^_]').match