diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-17 12:17:17 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-17 12:17:17 -0500 |
commit | e974d4fcf8404d53814b4559761f73dc2bc8a43a (patch) | |
tree | a2ba43f22d32ba090498e7447852633f42f0c4ca /coverage/misc.py | |
parent | 825e8a42586a03021c7e1fc72017c871c7393baf (diff) | |
download | python-coveragepy-e974d4fcf8404d53814b4559761f73dc2bc8a43a.tar.gz |
Exceptions have to be exceptions. #556
Diffstat (limited to 'coverage/misc.py')
-rw-r--r-- | coverage/misc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/misc.py b/coverage/misc.py index b3b439c..534ef17 100644 --- a/coverage/misc.py +++ b/coverage/misc.py @@ -286,9 +286,9 @@ class ExceptionDuringRun(CoverageException): # unittest.SkipTest doesn't exist in Python 2.6. We backport it with # 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 object. +# to derive from SkipTest, so if it doesn't exist, just use Exception. -class StopEverything(getattr(unittest, 'SkipTest', object)): +class StopEverything(getattr(unittest, 'SkipTest', Exception)): """An exception that means everything should stop. This derives from SkipTest so that tests that spring this trap will be |