diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-16 21:28:47 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-16 21:28:47 -0500 |
commit | f21af3d90ffc34e83a9ca6b9bcd1a6aab8e22f22 (patch) | |
tree | 62edbd7a0642c641ccdc4390b176e224f32a57fa /coverage/misc.py | |
parent | 45b6f5ef60091dec2e078ce2e516a6faf0393ddb (diff) | |
download | python-coveragepy-f21af3d90ffc34e83a9ca6b9bcd1a6aab8e22f22.tar.gz |
Only use SkipTest if we're testing, so that we can run on 2.6 pristine
Diffstat (limited to 'coverage/misc.py')
-rw-r--r-- | coverage/misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/misc.py b/coverage/misc.py index 7f85a0e..c5f8f20 100644 --- a/coverage/misc.py +++ b/coverage/misc.py @@ -284,7 +284,7 @@ class ExceptionDuringRun(CoverageException): pass -class StopEverything(unittest.SkipTest): +class StopEverything(unittest.SkipTest if env.TESTING else object): """An exception that means everything should stop. This derives from SkipTest so that tests that spring this trap will be |