diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-06-25 14:49:29 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-06-25 14:49:29 -0400 |
commit | ed87b39ade6fc868e39d256ee3fad594a5c21f53 (patch) | |
tree | a249e08f28efc56154038e5cbe716c0af43fb3c7 | |
parent | d0c15a256a8ea2d15831748d4f7704d49df28be6 (diff) | |
download | python-coveragepy-ed87b39ade6fc868e39d256ee3fad594a5c21f53.tar.gz |
Mark some impossible-to-cover lines
-rw-r--r-- | tests/test_summary.py | 2 | ||||
-rw-r--r-- | tests/test_xml.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_summary.py b/tests/test_summary.py index de92f45..c94c2ba 100644 --- a/tests/test_summary.py +++ b/tests/test_summary.py @@ -670,7 +670,7 @@ class TestSummaryReporterConfiguration(CoverageTest): """Get text output from the SummaryReporter.""" cov = Coverage() cov.start() - cov.stop() + cov.stop() # pragma: nested cov.data = coverage_data printer = SummaryReporter(cov, options) destination = StringIO() diff --git a/tests/test_xml.py b/tests/test_xml.py index 3d521b3..dd14b92 100644 --- a/tests/test_xml.py +++ b/tests/test_xml.py @@ -165,9 +165,9 @@ class XmlReportTest(XmlTestHelpers, CoverageTest): self.make_file("also/over/there/bar.py", "b = 2") cov = coverage.Coverage(source=["src/main", "also/over/there", "not/really"]) cov.start() - mod_foo = self.import_local_file("foo", "src/main/foo.py") - mod_bar = self.import_local_file("bar", "also/over/there/bar.py") - cov.stop() + mod_foo = self.import_local_file("foo", "src/main/foo.py") # pragma: nested + mod_bar = self.import_local_file("bar", "also/over/there/bar.py") # pragma: nested + cov.stop() # pragma: nested cov.xml_report([mod_foo, mod_bar], outfile="-") xml = self.stdout() |