summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-12-18 22:49:43 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-12-18 22:49:43 -0500
commit88207df5fa00861bf42f0993b23ce541817b72dd (patch)
tree556c450196a813f55b4f1e5cfb266f93832497d6
parent1319240b4e7cce5e293e0f92eb887c4b97f03239 (diff)
downloadpython-coveragepy-git-88207df5fa00861bf42f0993b23ce541817b72dd.tar.gz
Bug #496 wasn't about the single-line continue, just the constant while.
-rw-r--r--tests/test_arcs.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index 36eb4faa..2fd033b8 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