summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-04-03 19:37:13 (GMT)
committerGitHub <noreply@github.com>2020-04-03 19:37:13 (GMT)
commit254ec783411d9d16e51f1116f98918be2ef0e884 (patch)
treee0520ead772c7d702bec0a4423ab538a4026e893 /Lib
parentbd6a4c3d72828d3d0e13922e165998539d24f8bc (diff)
downloadcpython-254ec783411d9d16e51f1116f98918be2ef0e884.zip
cpython-254ec783411d9d16e51f1116f98918be2ef0e884.tar.gz
cpython-254ec783411d9d16e51f1116f98918be2ef0e884.tar.bz2
bpo-40147: Move the check for duplicate keywords to the compiler (GH-19289)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_metaclass.py2
-rw-r--r--Lib/test/test_syntax.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_metaclass.py b/Lib/test/test_metaclass.py
index e6fe20a..6edd899 100644
--- a/Lib/test/test_metaclass.py
+++ b/Lib/test/test_metaclass.py
@@ -128,7 +128,7 @@ Check for duplicate keywords.
...
Traceback (most recent call last):
[...]
- SyntaxError: keyword argument repeated
+ SyntaxError: keyword argument repeated: metaclass
>>>
Another way.
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index 128c4da..a7e7e2c 100644
--- a/Lib/test/test_syntax.py
+++ b/Lib/test/test_syntax.py
@@ -588,7 +588,7 @@ Make sure that the old "raise X, Y[, Z]" form is gone:
>>> f(a=23, a=234)
Traceback (most recent call last):
...
-SyntaxError: keyword argument repeated
+SyntaxError: keyword argument repeated: a
>>> {1, 2, 3} = 42
Traceback (most recent call last):