Skip to content

Commit c50ab85

Browse files
committed
Add test for unpack regression
1 parent d7842c7 commit c50ab85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/snippets/if_expressions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ def func2():
2424
return 20
2525

2626
assert ret(func1() or func2()) == 20
27+
28+
a, b = (1, 2) if True else (3, 4)
29+
assert a == 1
30+
assert b == 2

0 commit comments

Comments
 (0)