summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2013-01-09 18:27:08 -0500
committerNed Batchelder <ned@nedbatchelder.com>2013-01-09 18:27:08 -0500
commit1da4388377f1aad1b1552d9b01ca10ce26f9e1dc (patch)
treefe859f354d9595f2192b58c711344cb251859769
parent93669b191219658928da3d19cee2f4c622e73105 (diff)
downloadpython-coveragepy-1da4388377f1aad1b1552d9b01ca10ce26f9e1dc.tar.gz
Simplify this test case for #175.
-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 fc16c0f..8870c6c 100644
--- a/test/test_arcs.py
+++ b/test/test_arcs.py
@@ -303,7 +303,7 @@ class LoopArcTest(CoverageTest):
def test_confusing_for_loop_bug_175(self):
self.check_coverage("""\
o = [(1,2), (3,4)]
- o = [a for a in o if a[0] > 1]
+ o = [a for a in o]
for tup in o:
x = tup[0]
y = tup[1]
@@ -312,7 +312,7 @@ class LoopArcTest(CoverageTest):
arcz_missing="", arcz_unpredicted="")
self.check_coverage("""\
o = [(1,2), (3,4)]
- for tup in [a for a in o if a[0] > 1]:
+ for tup in [a for a in o]:
x = tup[0]
y = tup[1]
""",