Skip to content

Commit 9b28d7d

Browse files
committed
✅ Fix tests
1 parent 350c6c5 commit 9b28d7d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_varname.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,12 @@ def function():
109109
assert (a, b, x.c) == ('a', 'b', 'c')
110110

111111
# Not all LHS are variables
112+
y = {}
112113
with pytest.raises(
113114
ImproperUseError,
114-
match='Can only get name of a variable or attribute, not Starred'
115+
match='Can only get name of a variable or attribute, not Subscript'
115116
):
116-
a, *b = function()
117+
a, y["a"] = function()
117118

118119
def test_raise_exc():
119120

0 commit comments

Comments
 (0)