[lang-ref] ( assign_multi_value_but_rhs_is_short ) ( python )
def test_assign_multi_value_but_rhs_is_short():
with pytest.raises(ValueError):
(a, b, c) = [1, 2] # ValueError: not enough values to unpack (expected 3, got 2)
def test_assign_multi_value_but_rhs_is_short():
with pytest.raises(ValueError):
(a, b, c) = [1, 2] # ValueError: not enough values to unpack (expected 3, got 2)