From f21af3d90ffc34e83a9ca6b9bcd1a6aab8e22f22 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 16 Jan 2017 21:28:47 -0500 Subject: Only use SkipTest if we're testing, so that we can run on 2.6 pristine --- coverage/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/misc.py') 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 -- cgit v1.2.1