Skip to content

Commit cbf6e70

Browse files
Fix tests
1 parent 9d068fa commit cbf6e70

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/test/test_syntax.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2204,19 +2204,19 @@
22042204
22052205
>>> import a as b; None = 1
22062206
Traceback (most recent call last):
2207-
SyntaxError: cannot assign to None
2207+
SyntaxError: cannot assign to reserved keyword 'None'
22082208
22092209
>>> import a, b as c; d = 1; None = 1
22102210
Traceback (most recent call last):
2211-
SyntaxError: cannot assign to None
2211+
SyntaxError: cannot assign to reserved keyword 'None'
22122212
22132213
>>> from a import b as c; None = 1
22142214
Traceback (most recent call last):
2215-
SyntaxError: cannot assign to None
2215+
SyntaxError: cannot assign to reserved keyword 'None'
22162216
22172217
>>> from a import b, c as d; e = 1; None = 1
22182218
Traceback (most recent call last):
2219-
SyntaxError: cannot assign to None
2219+
SyntaxError: cannot assign to reserved keyword 'None'
22202220
22212221
# Check that we dont raise the "trailing comma" error if there is more
22222222
# input to the left of the valid part that we parsed.

0 commit comments

Comments
 (0)