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 | db636c7cb5bea0555ebe91e25416a8c29fba1afd (patch) | |
tree | 876f22993b0f4523d7082694edfad4c668112fab /coverage/misc.py | |
parent | ece4872e9012a17ea9f48878582a48542e1ddc21 (diff) | |
download | python-coveragepy-git-db636c7cb5bea0555ebe91e25416a8c29fba1afd.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 b3b439c4..534ef179 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 |