From 04c2f16bd3d3dc1f151da6cfb6ec61be9ac85673 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 5 Nov 2009 23:12:32 -0800 Subject: [PATCH] Try-except around doctest tempfile deletion (for windows). --- tests/run/profile_test.pyx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.26.2