Skip to content

Commit

Permalink
fixup! Add test cases for python#14209
Browse files Browse the repository at this point in the history
  • Loading branch information
NMertsch committed Aug 30, 2024
1 parent c493513 commit 8a921a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test-data/unit/check-possibly-undefined.test
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,10 @@ b # OK
[case testForLoopBreakElseException]
# flags: --enable-error-code possibly-undefined
# Regression test for https://github.com/python/mypy/issues/14209
for i in [1, 2, 3]:
class Iterable:
def __iter__(self): ...

for i in Iterable():
if i:
b = i
break
Expand Down

0 comments on commit 8a921a4

Please sign in to comment.