diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-23 09:23:01 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-23 09:23:01 -0500 |
commit | e6505f52fca89539613df3bcd82b39624d14e22f (patch) | |
tree | 3ff8ff626f1e9f8c6cc43fd04990e516e8148517 /test/test_parser.py | |
parent | 7dd0e1ec7abda0f8f9609c10f988792b26a1768e (diff) | |
download | python-coveragepy-git-e6505f52fca89539613df3bcd82b39624d14e22f.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.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_parser.py b/test/test_parser.py index 9f0f00b0..0dc7089c 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 }) |