Skip to content

Commit c2ce2bb

Browse files
Add a test case that make the hot fix fail
1 parent 31113e9 commit c2ce2bb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/functional/e/elif_checker.py

+14
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,17 @@ def _if_in_fstring_comprehension():
3737
)
3838
elif "i" in "true":
3939
raise TypeError("d")
40+
41+
def _if_in_fstring_comprehension_with_elif():
42+
order = {}
43+
if "z" not in "false":
44+
raise TypeError(
45+
f" {', '.join(sorted(i for i in order or () if i not in vars))}"
46+
)
47+
elif "z" not in "true":
48+
pass
49+
else:
50+
if "t" not in "false": # [else-if-used]
51+
raise TypeError("d")
52+
else:
53+
print("e")

0 commit comments

Comments
 (0)