From: Robert Bradshaw Date: Tue, 17 Nov 2009 21:35:14 +0000 (-0800) Subject: One last precaution with temp files on Windows. X-Git-Tag: 0.12~2^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e3609d3abe98c3807dc31e07124f2e6f70db72cb;p=cython.git One last precaution with temp files on Windows. --- diff --git a/runtests.py b/runtests.py index c2033547..5dc5ec32 100644 --- a/runtests.py +++ b/runtests.py @@ -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