We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d8f744 commit c0a9811Copy full SHA for c0a9811
tests/test_arcs.py
@@ -619,6 +619,21 @@ def test_generator_expression(self):
619
arcz=".1 -22 2-2 12 23 34 45 53 3.",
620
)
621
622
+ def test_generator_expression_another_way(self):
623
+ # https://bugs.python.org/issue44450
624
+ # Generator expression:
625
+ self.check_coverage("""\
626
+ o = ((1,2), (3,4))
627
+ o = (a for
628
+ a in
629
+ o)
630
+ for tup in o:
631
+ x = tup[0]
632
+ y = tup[1]
633
+ """,
634
+ arcz=".1 -22 2-2 12 25 56 67 75 5.",
635
+ )
636
+
637
def test_other_comprehensions(self):
638
# Set comprehension:
639
self.check_coverage("""\
0 commit comments