Try-except around doctest tempfile deletion (for windows).
authorRobert Bradshaw <robertwb@math.washington.edu>
Fri, 6 Nov 2009 07:12:32 +0000 (23:12 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Fri, 6 Nov 2009 07:12:32 +0000 (23:12 -0800)
tests/run/profile_test.pyx

index f2537cfe267a4eec2381531df3a422656fb91f01..f9d2d5c3574599b833976d81018a4da0cfbe4ced 100644 (file)
@@ -20,7 +20,10 @@ __doc__ = u"""
     KeyError: 'f_noprof'
     >>> short_stats['f_raise']
     100
-    >>> os.unlink(statsfile)
+    >>> try:
+    ...    os.unlink(statsfile)
+    ... except:
+    ...    pass
 """
 
 import sys