summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-09-13 00:14:39 (GMT)
committerGitHub <noreply@github.com>2018-09-13 00:14:39 (GMT)
commitc9a71dd223c4ad200a97aa320aef6bd3d45f8897 (patch)
treee287118e87da5e55f7b6adc2ac3727f871aa520a /Lib
parent6d9767fb263d286dc383ece01ca5b0b25117bd94 (diff)
downloadcpython-c9a71dd223c4ad200a97aa320aef6bd3d45f8897.zip
cpython-c9a71dd223c4ad200a97aa320aef6bd3d45f8897.tar.gz
cpython-c9a71dd223c4ad200a97aa320aef6bd3d45f8897.tar.bz2
closes bpo-34641: Further restrict the LHS of keyword argument function call syntax. (GH-9212)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_syntax.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index fa1e7aa..c5b2496 100644
--- a/Lib/test/test_syntax.py
+++ b/Lib/test/test_syntax.py
@@ -269,6 +269,9 @@ SyntaxError: keyword can't be an expression
>>> f(x.y=1)
Traceback (most recent call last):
SyntaxError: keyword can't be an expression
+>>> f((x)=2)
+Traceback (most recent call last):
+SyntaxError: keyword can't be an expression
More set_context():