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 | 4e7e772343eb04ffea61d7c6693bc678de8bab2c (patch) | |
tree | fca3cbf42c5b52c2518d78b2f2c614375223db7c /test/test_parser.py | |
parent | 8238fd04bea068111ab35864a619e8de1243f757 (diff) | |
download | python-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.py | 4 |
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 }) |