diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-29 23:10:06 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-29 23:10:06 -0500 |
commit | 8600bdfd07e069e5f6b78631b14320cb49ee8457 (patch) | |
tree | c9157a7dc5ca5b92a3262c45903c490fb8de3997 /test/test_xml.py | |
parent | f8d10e6d49a0d34e98cd45a4b0a3c230bdcadda3 (diff) | |
download | python-coveragepy-git-8600bdfd07e069e5f6b78631b14320cb49ee8457.tar.gz |
Refactor a bunch of tests to isolate the recursive coverage calls.
Diffstat (limited to 'test/test_xml.py')
-rw-r--r-- | test/test_xml.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/test_xml.py b/test/test_xml.py index dda03e09..2a8bf30d 100644 --- a/test/test_xml.py +++ b/test/test_xml.py @@ -42,9 +42,7 @@ class XmlReportTest(CoverageTest): # https://bitbucket.org/ned/coveragepy/issue/208 self.make_file("innocuous.py", "a = 4") cov = coverage.coverage() - cov.start() - self.import_local_file("innocuous") - cov.stop() + self.start_import_stop(cov, "innocuous") os.remove("innocuous.py") cov.xml_report(ignore_errors=True) self.assert_exists("coverage.xml") @@ -55,9 +53,7 @@ class XmlReportTest(CoverageTest): self.make_file("sub/doit.py", "print('doit!')") self.make_file("main.py", "import sub.doit") cov = coverage.coverage() - cov.start() - self.import_local_file("main") - cov.stop() + self.start_import_stop(cov, "main") return cov def test_filename_format_showing_everything(self): |