diff options
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r-- | Lib/test/test_syntax.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index 4d8198e..5f622b0 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -1018,6 +1018,14 @@ Corner-cases that used to fail to raise the correct error: Traceback (most recent call last): SyntaxError: cannot assign to __debug__ + >>> def f(*args:(lambda __debug__:0)): pass + Traceback (most recent call last): + SyntaxError: cannot assign to __debug__ + + >>> def f(**kwargs:(lambda __debug__:0)): pass + 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 * |