diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2010-02-19 23:08:48 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-02-19 23:08:48 -0500 |
commit | f70090edc42512d8c50d9629867645fff552b775 (patch) | |
tree | 4c1e312bb2d61a3fabaf5c69f3dcab24c8ae6302 /coverage/misc.py | |
parent | 34f71934dacede93f59b372fde4c5a646dbc702b (diff) | |
download | python-coveragepy-f70090edc42512d8c50d9629867645fff552b775.tar.gz |
If the product code throws an exception, 'coverage run' now produces the same traceback as 'python' would, without the coverage-internal frames distracting from your code.
Diffstat (limited to 'coverage/misc.py')
-rw-r--r-- | coverage/misc.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/coverage/misc.py b/coverage/misc.py index 4959efe..4218536 100644 --- a/coverage/misc.py +++ b/coverage/misc.py @@ -75,3 +75,11 @@ class CoverageException(Exception): class NoSource(CoverageException): """Used to indicate we couldn't find the source for a module.""" pass + +class ExceptionDuringRun(CoverageException): + """An exception happened while running customer code. + + Construct it with three arguments, the values from `sys.exc_info`. + + """ + pass |