Skip to content

Commit

Permalink
Remove unhandled test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
NMertsch committed Sep 10, 2024
1 parent 730e65a commit aa021aa
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions test-data/unit/check-possibly-undefined.test
Original file line number Diff line number Diff line change
Expand Up @@ -1134,22 +1134,6 @@ else:

a # OK

[case testForLoopBreakAfterConditionalDefinition]
# flags: --enable-error-code possibly-undefined
# Regression test for https://github.com/python/mypy/issues/14209
def condition() -> bool: ...
class Iterable:
def __iter__(self): ...

for i in Iterable():
if condition():
a = 1
break
else:
a = 1 # if iterable is empty

a # OK

[case testWhileLoopBreakAsLastStatement]
# flags: --enable-error-code possibly-undefined
# Regression test for https://github.com/python/mypy/issues/14209
Expand Down Expand Up @@ -1177,20 +1161,6 @@ else:

a # OK

[case testWhileLoopBreakAfterConditionalDefinition]
# flags: --enable-error-code possibly-undefined
# Regression test for https://github.com/python/mypy/issues/14209
def condition() -> bool: ...

while condition():
if condition():
a = 1
break
else:
a = 1 # if `condition()` was `False` on first call, and if not `break`

a # OK

[case testForLoopElseRaiseAsOnlyStatement]
# flags: --enable-error-code possibly-undefined
# Regression test for https://github.com/python/mypy/issues/14209
Expand Down

0 comments on commit aa021aa

Please sign in to comment.