Skip to content

Commit c0a9811

Browse files
committed
test: another test suggested by Mark Shannon
1 parent 1d8f744 commit c0a9811

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Diff for: tests/test_arcs.py

+15
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,21 @@ def test_generator_expression(self):
619619
arcz=".1 -22 2-2 12 23 34 45 53 3.",
620620
)
621621

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+
622637
def test_other_comprehensions(self):
623638
# Set comprehension:
624639
self.check_coverage("""\

0 commit comments

Comments
 (0)