merge 3.1
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index 02372ba..5926b69 100644
--- a/Lib/test/test_syntax.py
+++ b/Lib/test/test_syntax.py
@@ -67,6 +67,10 @@
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
diff --git a/Misc/NEWS b/Misc/NEWS
index c530cd8..bacd1b7 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -490,6 +490,9 @@
- Add sys.flags attribute for the new -q command-line option.
+- Issue #11506: Trying to assign to a bytes literal should result in a
+ SyntaxError.
+
Library
-------
diff --git a/Python/ast.c b/Python/ast.c
index 4edf335..2ee2186 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -483,6 +483,7 @@
case Set_kind:
case Num_kind:
case Str_kind:
+ case Bytes_kind:
expr_name = "literal";
break;
case Ellipsis_kind: