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_oddball.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_oddball.py')
-rw-r--r-- | test/test_oddball.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/test_oddball.py b/test/test_oddball.py index a8c243de..14d56b11 100644 --- a/test/test_oddball.py +++ b/test/test_oddball.py @@ -105,9 +105,7 @@ class RecursionTest(CoverageTest): """) cov = coverage.coverage() - cov.start() - self.import_local_file("recur") - cov.stop() + self.start_import_stop(cov, "recur") pytrace = (cov.collector.tracer_name() == "PyTracer") expected_missing = [3] @@ -200,9 +198,7 @@ class PyexpatTest(CoverageTest): cov.erase() # Import the python file, executing it. - cov.start() - self.import_local_file("outer") - cov.stop() + self.start_import_stop(cov, "outer") _, statements, missing, _ = cov.analysis("trydom.py") self.assertEqual(statements, [1,3,8,9,10,11,13]) |