summaryrefslogtreecommitdiff
path: root/coverage/misc.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-01-21 15:19:26 -0500
committerNed Batchelder <ned@nedbatchelder.com>2017-01-21 15:19:26 -0500
commit742d251b2f19a562f7e9b7ad7182feb216e8b638 (patch)
tree11eddd21f5d7b9cfc9501e215001e2b0e1de3895 /coverage/misc.py
parent1e143ff126b1e3c24c61f1c1e613611637eeb194 (diff)
downloadpython-coveragepy-742d251b2f19a562f7e9b7ad7182feb216e8b638.tar.gz
One more tweak to StopEverything
Diffstat (limited to 'coverage/misc.py')
-rw-r--r--coverage/misc.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/coverage/misc.py b/coverage/misc.py
index d3723e2..8e14aec 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