diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-21 15:19:26 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-21 15:19:26 -0500 |
commit | 7920662665c20e39d3a470859ec6e7d322607602 (patch) | |
tree | 625d65a2f9c17f04e79e91a76a6f75f132055825 /coverage/misc.py | |
parent | 19483399663fb9a78b012998a9e4be16176db707 (diff) | |
download | python-coveragepy-git-7920662665c20e39d3a470859ec6e7d322607602.tar.gz |
One more tweak to StopEverything
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 |