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
commit80e701b43f04f6ecca44a11f8c24d8ddfb74d662 (patch)
tree2f2cd10b6fde059f5bde29853d71e145f7ed2f6f /tests/test_parser.py
parent1c38106236a2c75cb2e3bb072e402af218408081 (diff)
downloadpython-coveragepy-80e701b43f04f6ecca44a11f8c24d8ddfb74d662.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 fd820b9..cf43300 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):