diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2011-07-04 13:53:18 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-07-04 13:53:18 -0400 |
commit | 0f1b0d30e306ad35b1e29912e0613e9bf2618c47 (patch) | |
tree | a42e6bab3f2394b55f40d1f8439cbc734addf8c6 /test/test_arcs.py | |
parent | 0b05ae076815f9239019e04778d4d481c8ae1ac3 (diff) | |
download | python-coveragepy-0f1b0d30e306ad35b1e29912e0613e9bf2618c47.tar.gz |
for-else constructs are handled properly, avoiding bogus partial branch warnings. Fixes issue #122. Bonus irony: this also makes while 1 loops automatically understood better too.
Diffstat (limited to 'test/test_arcs.py')
-rw-r--r-- | test/test_arcs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_arcs.py b/test/test_arcs.py index 9f86ecd..2c98317 100644 --- a/test/test_arcs.py +++ b/test/test_arcs.py @@ -213,12 +213,12 @@ class LoopArcTest(CoverageTest): i += 1 assert a == 4 and i == 3 """, - arcz=".1 12 23 27 34 45 36 63 57 7.", + arcz=".1 12 23 34 45 36 63 57 7.", ) # With "while True", 2.x thinks it's computation, 3.x thinks it's # constant. if sys.version_info >= (3, 0): - arcz = ".1 12 23 27 34 45 36 63 57 7." + arcz = ".1 12 23 34 45 36 63 57 7." else: arcz = ".1 12 23 27 34 45 36 62 57 7." self.check_coverage("""\ |