summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_syntax.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r--Lib/test/test_syntax.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index 4c98838..52fc357 100644
--- a/Lib/test/test_syntax.py
+++ b/Lib/test/test_syntax.py
@@ -1955,6 +1955,17 @@ Invalid expressions in type scopes:
...
SyntaxError: yield expression cannot be used within the definition of a generic
+ >>> f(**x, *y)
+ Traceback (most recent call last):
+ SyntaxError: iterable argument unpacking follows keyword argument unpacking
+
+ >>> f(**x, *)
+ Traceback (most recent call last):
+ SyntaxError: iterable argument unpacking follows keyword argument unpacking
+
+ >>> f(x, *:)
+ Traceback (most recent call last):
+ SyntaxError: invalid syntax
"""
import re