diff --git a/tests/test_arcs.py b/tests/test_arcs.py index f1b57c579..5b7965aa2 100644 --- a/tests/test_arcs.py +++ b/tests/test_arcs.py @@ -619,6 +619,21 @@ def test_generator_expression(self): arcz=".1 -22 2-2 12 23 34 45 53 3.", ) + def test_generator_expression_another_way(self): + # https://bugs.python.org/issue44450 + # Generator expression: + self.check_coverage("""\ + o = ((1,2), (3,4)) + o = (a for + a in + o) + for tup in o: + x = tup[0] + y = tup[1] + """, + arcz=".1 -22 2-2 12 25 56 67 75 5.", + ) + def test_other_comprehensions(self): # Set comprehension: self.check_coverage("""\