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
commitcc7ed848cdaa8329edb503db686f3ee2b4be47ae (patch)
treef4af232f4d5a46f69699782bb21b23e27d2a739c /tests/test_api.py
parent9552e3d1c9f054203f577ef0ef697ef836d504b8 (diff)
downloadpython-coveragepy-git-cc7ed848cdaa8329edb503db686f3ee2b4be47ae.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 7c2672d8..feb8b2e6 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.