summaryrefslogtreecommitdiff
path: root/pytest.py
diff options
context:
space:
mode:
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2007-07-16 18:02:40 +0200
committerAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2007-07-16 18:02:40 +0200
commit10caa388cae0575944737fc0cd7654d3990ace8d (patch)
treef050aa9e9d7932b0fdbefaca2da1908916777f34 /pytest.py
parent217a42c137fabee08eedbc438050074d1c6d7dba (diff)
downloadlogilab-common-10caa388cae0575944737fc0cd7654d3990ace8d.tar.gz
don't catch SystemExit
Diffstat (limited to 'pytest.py')
-rw-r--r--pytest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pytest.py b/pytest.py
index 0709f7c..ba3f57d 100644
--- a/pytest.py
+++ b/pytest.py
@@ -266,6 +266,8 @@ class PyTester(object):
ttime, ctime = (tend - tstart), (cend - cstart)
self.report.feed(filename, testprog.result, ttime, ctime)
return testprog
+ except SystemExit:
+ raise
except Exception, exc:
self.report.failed_to_test_module(filename)
print 'unhandled exception occured while testing', modname