summaryrefslogtreecommitdiff
path: root/coverage/misc.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2010-02-19 23:08:48 -0500
committerNed Batchelder <ned@nedbatchelder.com>2010-02-19 23:08:48 -0500
commit86f65fd21d59fdd4febdab308e907976ca1dce6d (patch)
tree2b0bb6b5c888299f2ed17583115b46e6886d1710 /coverage/misc.py
parent36a637f828d6596d0e83b6aa324f4f5f023eb16b (diff)
downloadpython-coveragepy-git-86f65fd21d59fdd4febdab308e907976ca1dce6d.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.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/coverage/misc.py b/coverage/misc.py
index 4959efe0..4218536d 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