From cc7ed848cdaa8329edb503db686f3ee2b4be47ae Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 20 Feb 2018 12:03:12 -0500 Subject: Pragma away some test code that won't be covered --- tests/test_api.py | 2 +- 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()) -- cgit v1.2.1