summaryrefslogtreecommitdiff
path: root/test/test_parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-23 09:23:01 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-23 09:23:01 -0500
commit4e7e772343eb04ffea61d7c6693bc678de8bab2c (patch)
treefca3cbf42c5b52c2518d78b2f2c614375223db7c /test/test_parser.py
parent8238fd04bea068111ab35864a619e8de1243f757 (diff)
downloadpython-coveragepy-4e7e772343eb04ffea61d7c6693bc678de8bab2c.tar.gz
ByteParser now recognizes synthetic 'return None' blocks and treats them correctly.
Diffstat (limited to 'test/test_parser.py')
-rw-r--r--test/test_parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_parser.py b/test/test_parser.py
index 9f0f00b..0dc7089 100644
--- a/test/test_parser.py
+++ b/test/test_parser.py
@@ -67,7 +67,7 @@ class ParserTest(CoverageTest):
1:0, 2:1, 3:1
})
- def XXX_missing_branch_to_excluded_code(self):
+ def test_missing_branch_to_excluded_code(self):
cp = self.parse_source("""\
if fooey:
a = 2
@@ -93,4 +93,4 @@ class ParserTest(CoverageTest):
a = 5
b = 6
""")
- self.assertEqual(cp.exit_counts(), { 1:13, 2:1, 6:1 })
+ self.assertEqual(cp.exit_counts(), { 1:1, 2:1, 3:1, 6:1 })