diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-02-20 12:03:12 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-02-20 12:03:12 -0500 |
commit | cc7ed848cdaa8329edb503db686f3ee2b4be47ae (patch) | |
tree | f4af232f4d5a46f69699782bb21b23e27d2a739c | |
parent | 9552e3d1c9f054203f577ef0ef697ef836d504b8 (diff) | |
download | python-coveragepy-git-cc7ed848cdaa8329edb503db686f3ee2b4be47ae.tar.gz |
Pragma away some test code that won't be covered
-rw-r--r-- | tests/test_api.py | 2 | ||||
-rw-r--r-- | tests/test_process.py | 2 |
2 files changed, 2 insertions, 2 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. diff --git a/tests/test_process.py b/tests/test_process.py index 70329b59..85adcf47 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()) |