summaryrefslogtreecommitdiff
path: root/coverage/misc.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2013-09-28 11:07:41 -0400
committerNed Batchelder <ned@nedbatchelder.com>2013-09-28 11:07:41 -0400
commitaafd82cc752bb16fe217656a2cae4e531cfc611f (patch)
treeb7f665d5b7dea9449490bd4ab4aa26419c73e1ae /coverage/misc.py
parent5e5cf2d5b9d7decfce16142a7cf7cc140fcbf354 (diff)
downloadpython-coveragepy-git-aafd82cc752bb16fe217656a2cae4e531cfc611f.tar.gz
Now we can run .pyc files directly. Closes #264.
Diffstat (limited to 'coverage/misc.py')
-rw-r--r--coverage/misc.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/coverage/misc.py b/coverage/misc.py
index 473d7d43..2d2662da 100644
--- a/coverage/misc.py
+++ b/coverage/misc.py
@@ -146,6 +146,10 @@ class NoSource(CoverageException):
"""We couldn't find the source for a module."""
pass
+class NoCode(NoSource):
+ """We couldn't find any code at all."""
+ pass
+
class NotPython(CoverageException):
"""A source file turned out not to be parsable Python."""
pass