diff options
Diffstat (limited to 'coverage/misc.py')
-rw-r--r-- | coverage/misc.py | 12 |
1 files changed, 1 insertions, 11 deletions
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 |