diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-04-12 23:33:28 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-04-12 23:33:28 (GMT) |
commit | bd3e362089c9fab1028a1bf58b4e762851a32244 (patch) | |
tree | f57c18c9571bc313369e755521f0432985b80a97 /Lib | |
parent | 3780542039d109ae747816dae208208be93240d6 (diff) | |
download | cpython-bd3e362089c9fab1028a1bf58b4e762851a32244.zip cpython-bd3e362089c9fab1028a1bf58b4e762851a32244.tar.gz cpython-bd3e362089c9fab1028a1bf58b4e762851a32244.tar.bz2 |
make assigning to a bytes literal a syntax error (closes #11506)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_syntax.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index 202770a..7faab91 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -67,6 +67,10 @@ SyntaxError: can't assign to literal Traceback (most recent call last): SyntaxError: can't assign to literal +>>> b"" = 1 +Traceback (most recent call last): +SyntaxError: can't assign to literal + >>> `1` = 1 Traceback (most recent call last): SyntaxError: invalid syntax |