summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()