summaryrefslogtreecommitdiff
path: root/pytest.py
diff options
context:
space:
mode:
authorSylvain <syt@logilab.fr>2007-11-30 13:13:38 +0100
committerSylvain <syt@logilab.fr>2007-11-30 13:13:38 +0100
commit824f5e009de634d71283594cfb9bfb07e20f96eb (patch)
treee41752606b0f1bd5c755e3497d747d91f19322f5 /pytest.py
parenta1985c17caa606440240d09fdb1a3a06e8dfcc44 (diff)
downloadlogilab-common-824f5e009de634d71283594cfb9bfb07e20f96eb.tar.gz
pytest: let KeyboardInterrupt propagate
Diffstat (limited to 'pytest.py')
-rw-r--r--pytest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pytest.py b/pytest.py
index 10b19f7..f800e9e 100644
--- a/pytest.py
+++ b/pytest.py
@@ -277,7 +277,7 @@ class PyTester(object):
ttime, ctime = (tend - tstart), (cend - cstart)
self.report.feed(filename, testprog.result, ttime, ctime)
return testprog
- except SystemExit:
+ except (KeyboardInterrupt, SystemExit):
raise
except Exception, exc:
self.report.failed_to_test_module(filename)