summaryrefslogtreecommitdiff
path: root/test/test_oddball.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-11-29 23:10:06 -0500
committerNed Batchelder <ned@nedbatchelder.com>2012-11-29 23:10:06 -0500
commit83d8d70f2a292322f1ccfd75a00b15d9c8164abb (patch)
treea0488fb2f7f16d2c176812af395f459718b15f7a /test/test_oddball.py
parent1e3987d5ac551ac9ebf6a19b404d6f23aeef75e7 (diff)
downloadpython-coveragepy-83d8d70f2a292322f1ccfd75a00b15d9c8164abb.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.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/test_oddball.py b/test/test_oddball.py
index a8c243d..14d56b1 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])