summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-06-25 14:49:29 -0400
committerNed Batchelder <ned@nedbatchelder.com>2016-06-25 14:49:29 -0400
commit83114f0f816488c8c5ddb083ee310f7b881f4b50 (patch)
tree62a5ae5566b73e65fb1e3c40ee15dbc553f13fad
parentd05b48b69c2e29e25765cfb70b5ee739d0a9dbe8 (diff)
downloadpython-coveragepy-git-83114f0f816488c8c5ddb083ee310f7b881f4b50.tar.gz
Mark some impossible-to-cover lines
-rw-r--r--tests/test_summary.py2
-rw-r--r--tests/test_xml.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_summary.py b/tests/test_summary.py
index de92f454..c94c2ba1 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 3d521b3a..dd14b920 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()