Commits

Ned Batchelder committed ffc19c5

Simplify this test case for #175.

Comments (0)

Files changed (1)

test/test_arcs.py

         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]
                 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]
                 """,