summaryrefslogtreecommitdiff
path: root/metacov.ini
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-01-19 06:30:04 -0500
committerNed Batchelder <ned@nedbatchelder.com>2017-01-19 06:30:04 -0500
commite48988fa3c36aa193de98c56f11fcf98a62c443e (patch)
treebf0046f40583b1b26edc20c86cd33a21febf485f /metacov.ini
parentc26c44d5d296170614f52043f26ca29c61bbc54f (diff)
downloadpython-coveragepy-e48988fa3c36aa193de98c56f11fcf98a62c443e.tar.gz
More-precise no-coverage pragmas
Diffstat (limited to 'metacov.ini')
-rw-r--r--metacov.ini19
1 files changed, 18 insertions, 1 deletions
diff --git a/metacov.ini b/metacov.ini
index 2380658..b25af6e 100644
--- a/metacov.ini
+++ b/metacov.ini
@@ -14,11 +14,28 @@ source =
# We set a different pragma so our code won't be confused with test code.
exclude_lines =
pragma: not covered
+
+ # Lines in test code that isn't covered: we are nested inside ourselves.
pragma: nested
+
+ # Lines that are only executed when we are debugging coverage.py.
def __repr__
- raise AssertionError
pragma: debugging
+
+ # Lines that are only executed when we are not testing coverage.py.
+ pragma: not testing
+
+ # Lines that we can't run during metacov.
+ pragma: no metacov
+
+ # These lines only happen if tests fail.
+ raise AssertionError
pragma: only failure
+
+ # OS error conditions that we can't (or don't care to) replicate.
+ pragma: cant happen
+
+ # Jython needs special care.
pragma: only jython
skip.*Jython