From 1eda2b10b954f54f5fe9f029c627ab4a788a2df2 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 9 Jan 2013 18:27:08 -0500 Subject: Simplify this test case for #175. --- test/test_arcs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test_arcs.py b/test/test_arcs.py index fc16c0fb..8870c6c7 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] """, -- cgit v1.2.1