From: Robert Bradshaw Date: Fri, 6 Nov 2009 07:12:32 +0000 (-0800) Subject: Try-except around doctest tempfile deletion (for windows). X-Git-Tag: 0.12.rc0~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=04c2f16bd3d3dc1f151da6cfb6ec61be9ac85673;p=cython.git Try-except around doctest tempfile deletion (for windows). --- diff --git a/tests/run/profile_test.pyx b/tests/run/profile_test.pyx index f2537cfe..f9d2d5c3 100644 --- a/tests/run/profile_test.pyx +++ b/tests/run/profile_test.pyx @@ -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