summaryrefslogtreecommitdiff
path: root/tests/test_api.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-02-20 12:03:12 -0500
committerNed Batchelder <ned@nedbatchelder.com>2018-02-20 12:03:12 -0500
commitfd647ef06318d9a3c323770976350231c3d36a32 (patch)
treebb5051e287e77b114b3a80c2db3ae9e0fd5956d5 /tests/test_api.py
parent408b58b86498b6b163526640db3f97d3a9e31e26 (diff)
downloadpython-coveragepy-fd647ef06318d9a3c323770976350231c3d36a32.tar.gz
Pragma away some test code that won't be covered
Diffstat (limited to 'tests/test_api.py')
-rw-r--r--tests/test_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index 7c2672d..feb8b2e 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -582,7 +582,7 @@ class SourceOmitIncludeTest(OmitIncludeTestsMixin, CoverageTest):
cov = coverage.Coverage(source=["pkg1"], include=["pkg2"])
with self.assert_warnings(cov, ["--include is ignored because --source is set"]):
cov.start()
- cov.stop()
+ cov.stop() # pragma: nested
def test_source_package_as_dir(self):
# pkg1 is a directory, since we cd'd into tests/modules in setUp.