summaryrefslogtreecommitdiff
path: root/tests/test_parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-02-13 07:48:10 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-02-13 07:48:10 -0500
commit24145b0bb0368868b8aa2e8cc0eb43324533367d (patch)
tree2c2bf2ac5cfb28309a02c2b365b05faf42ed7f50 /tests/test_parser.py
parent9047a7742ad67bb36440299c2ef1e48ee7108c20 (diff)
downloadpython-coveragepy-git-24145b0bb0368868b8aa2e8cc0eb43324533367d.tar.gz
More progress on better missed-branch descriptions
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r--tests/test_parser.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py
index fd820b9b..cf433009 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -192,6 +192,7 @@ class ParserMissingArcDescriptionTest(CoverageTest):
run_in_temp_dir = False
def test_missing_arc_description(self):
+ # This code is never run, so the actual values don't matter.
text = textwrap.dedent(u"""\
if x:
print(2)
@@ -216,6 +217,10 @@ class ParserMissingArcDescriptionTest(CoverageTest):
parser.missing_arc_description(6, -5),
"line 6 didn't return from function 'func5', because the loop on line 6 didn't complete"
)
+ self.assertEqual(
+ parser.missing_arc_description(6, 7),
+ "line 6 didn't jump to line 7, because the loop on line 6 never started"
+ )
class ParserFileTest(CoverageTest):