summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_syntax.py
diff options
context:
space:
mode:
authorLysandros Nikolaou <lisandrosnik@gmail.com>2020-05-04 10:58:31 (GMT)
committerGitHub <noreply@github.com>2020-05-04 10:58:31 (GMT)
commite10e7c771bf06112c4a311e0ef6b8af6423b0cca (patch)
tree79a34dfffd7b555dcab60db13ad4ab678d4b9068 /Lib/test/test_syntax.py
parentc3f001461d5794c81cf5f70e08ae5435fe935ceb (diff)
downloadcpython-e10e7c771bf06112c4a311e0ef6b8af6423b0cca.zip
cpython-e10e7c771bf06112c4a311e0ef6b8af6423b0cca.tar.gz
cpython-e10e7c771bf06112c4a311e0ef6b8af6423b0cca.tar.bz2
bpo-40334: Spacialized error message for invalid args after bare '*' (GH-19865)
When parsing things like `def f(*): pass` the old parser used to output `SyntaxError: named arguments must follow bare *`, which the new parser wasn't able to do.
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r--Lib/test/test_syntax.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index e7468ca..0c0fc48 100644
--- a/Lib/test/test_syntax.py
+++ b/Lib/test/test_syntax.py
@@ -627,9 +627,9 @@ Corner-cases that used to fail to raise the correct error:
Traceback (most recent call last):
SyntaxError: cannot assign to __debug__
- # >>> with (lambda *:0): pass
- # Traceback (most recent call last):
- # SyntaxError: named arguments must follow bare *
+ >>> with (lambda *:0): pass
+ Traceback (most recent call last):
+ SyntaxError: named arguments must follow bare *
Corner-cases that used to crash: