summaryrefslogtreecommitdiff
path: root/test/test_arcs.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-07-04 13:53:18 -0400
committerNed Batchelder <ned@nedbatchelder.com>2011-07-04 13:53:18 -0400
commit91692c31f757fe78e9a7376033f66772fc97f36b (patch)
tree53484cc5af1c35ab2588ecf104984ac0c109ad48 /test/test_arcs.py
parent9a57b96e1688fba3038b86a2f2c8244167db158f (diff)
downloadpython-coveragepy-git-91692c31f757fe78e9a7376033f66772fc97f36b.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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_arcs.py b/test/test_arcs.py
index 9f86ecde..2c983170 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("""\