From 65eefc5a62d5fae39921e7608039c1deff6be614 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 18 Dec 2016 22:49:43 -0500 Subject: Bug #496 wasn't about the single-line continue, just the constant while. --- tests/test_arcs.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_arcs.py b/tests/test_arcs.py index 36eb4fa..2fd033b 100644 --- a/tests/test_arcs.py +++ b/tests/test_arcs.py @@ -273,14 +273,15 @@ class LoopArcTest(CoverageTest): def test_bug_496_continue_in_constant_while(self): # https://bitbucket.org/ned/coveragepy/issue/496 if env.PY3: - arcz = ".1 12 23 34 43 45 5." + arcz = ".1 12 23 34 45 53 46 6." else: - arcz = ".1 12 2-1 23 34 42 45 5." + arcz = ".1 12 2-1 23 34 45 52 46 6." self.check_coverage("""\ up = iter('ta') while True: char = next(up) - if char == 't': continue + if char == 't': + continue break """, arcz=arcz -- cgit v1.2.1