From 068ce294faff77ac60e2be83e3684d109e490d10 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 7f85a0eb..c5f8f20e 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