summaryrefslogtreecommitdiff
path: root/tests/test_parser.py
diff options
context:
space:
mode:
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):