summaryrefslogtreecommitdiff
path: root/test/coveragetest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-12-26 15:27:49 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-12-26 15:27:49 -0500
commitc3b8f57d2cd96801052fc0d0f56401aaa8d4f063 (patch)
tree2d113ec8e15177ffa880ec718946aa29f83b8e94 /test/coveragetest.py
parent04076715a642d0caa6436e81d35416e711b80d52 (diff)
downloadpython-coveragepy-git-c3b8f57d2cd96801052fc0d0f56401aaa8d4f063.tar.gz
Mark some lines as uncoverable, add some tests for some test methods.
Diffstat (limited to 'test/coveragetest.py')
-rw-r--r--test/coveragetest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/coveragetest.py b/test/coveragetest.py
index 55653d53..01800a57 100644
--- a/test/coveragetest.py
+++ b/test/coveragetest.py
@@ -205,10 +205,10 @@ class CoverageTest(TestCase):
cov.exclude(exc)
cov.start()
- try:
+ try: # pragma: recursive coverage
# Import the python file, executing it.
mod = self.import_module(modname)
- finally:
+ finally: # pragma: recursive coverage
# Stop Coverage.
cov.stop()
@@ -238,7 +238,7 @@ class CoverageTest(TestCase):
self.assertEqual(analysis.missing_formatted(), missing)
else:
for missing_list in missing:
- if analysis.missing == missing_list:
+ if analysis.missing_formatted() == missing_list:
break
else:
self.fail("None of the missing choices matched %r" %