Skip to content

Commit

Permalink
test: another test suggested by Mark Shannon
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Sep 1, 2021
1 parent 1d8f744 commit c0a9811
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_arcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("""\
Expand Down

0 comments on commit c0a9811

Please sign in to comment.