diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-12-18 22:49:43 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-12-18 22:49:43 -0500 |
commit | 65eefc5a62d5fae39921e7608039c1deff6be614 (patch) | |
tree | 3fc6329a6a06d04948f5060b12c78dc0bacb0246 | |
parent | 198e05e57f284038da800b81cd403dd48f5f4bba (diff) | |
download | python-coveragepy-65eefc5a62d5fae39921e7608039c1deff6be614.tar.gz |
Bug #496 wasn't about the single-line continue, just the constant while.
-rw-r--r-- | tests/test_arcs.py | 7 |
1 files changed, 4 insertions, 3 deletions
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 |