summaryrefslogtreecommitdiff
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
parent408b58b86498b6b163526640db3f97d3a9e31e26 (diff)
downloadpython-coveragepy-fd647ef06318d9a3c323770976350231c3d36a32.tar.gz
Pragma away some test code that won't be covered
-rw-r--r--tests/test_api.py2
-rw-r--r--tests/test_process.py2
2 files changed, 2 insertions, 2 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.
diff --git a/tests/test_process.py b/tests/test_process.py
index 70329b5..85adcf4 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -767,7 +767,7 @@ class EnvironmentTest(CoverageTest):
self.assert_tryexecfile_output(out_cov, out_py)
def test_coverage_run_dir_is_like_python_dir(self):
- if sys.version_info == (3, 5, 4, 'final', 0):
+ if sys.version_info == (3, 5, 4, 'final', 0): # pragma: not covered
self.skipTest("3.5.4 broke this: https://bugs.python.org/issue32551")
with open(TRY_EXECFILE) as f:
self.make_file("with_main/__main__.py", f.read())