From 4e7e772343eb04ffea61d7c6693bc678de8bab2c Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 23 Nov 2009 09:23:01 -0500 Subject: ByteParser now recognizes synthetic 'return None' blocks and treats them correctly. --- test/test_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_parser.py') 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 }) -- cgit v1.2.1