[lang-ref] ( assign_multi_value_but_lhs_is_short ) ( python )
def test_assign_multi_value_but_lhs_is_short():
with pytest.raises(ValueError):
(a, b) = [1, 2, 3] # ValueError: too many values to unpack (expected 2, got 3)
def test_assign_multi_value_but_lhs_is_short():
with pytest.raises(ValueError):
(a, b) = [1, 2, 3] # ValueError: too many values to unpack (expected 2, got 3)