From 7920662665c20e39d3a470859ec6e7d322607602 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 21 Jan 2017 15:19:26 -0500 Subject: One more tweak to StopEverything --- coverage/misc.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'coverage/misc.py') diff --git a/coverage/misc.py b/coverage/misc.py index d3723e29..8e14aec9 100644 --- a/coverage/misc.py +++ b/coverage/misc.py @@ -293,7 +293,7 @@ class ExceptionDuringRun(CoverageException): # unittest2 in the coverage.py test suite. But for production, we don't need # to derive from SkipTest, so if it doesn't exist, just use Exception. -class StopEverything(getattr(unittest, 'SkipTest', Exception)): +class StopEverything(BaseCoverageException, getattr(unittest, 'SkipTest', Exception)): """An exception that means everything should stop. This derives from SkipTest so that tests that spring this trap will be @@ -301,13 +301,3 @@ class StopEverything(getattr(unittest, 'SkipTest', Exception)): """ pass - - -class IncapablePython(BaseCoverageException, StopEverything): - """An operation is attempted that this version of Python cannot do. - - This is derived from BaseCoverageException, not CoverageException, so that - it won't get caught by 'except CoverageException'. - - """ - pass -- cgit v1.2.1