From 88a534e9b0d3f4554113072826bf979c28daf4d7 Mon Sep 17 00:00:00 2001 From: hpk Date: Sat, 16 Aug 2008 17:38:54 +0200 Subject: [PATCH] [svn r57323] port 57174 from branch: ignore errors when removing dirs in teardowns --HG-- branch : trunk --- py/path/local/local.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py/path/local/local.py b/py/path/local/local.py index a3c0ceccf..06b8b0deb 100644 --- a/py/path/local/local.py +++ b/py/path/local/local.py @@ -657,7 +657,9 @@ class LocalPath(common.FSPathBase, PlatformMixin): pass # assume that it means that there is no 'lf' try: path.remove(rec=1) - except py.error.Error: + except KeyboardInterrupt: + raise + except: # this might be py.error.Error, WindowsError ... pass # make link...