diff options
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r-- | Lib/test/test_syntax.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index 4992a32a8e..ed48379d6b 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -474,6 +474,12 @@ Traceback (most recent call last): File "<doctest test.test_syntax[50]>", line 1 SyntaxError: can't assign to literal +Corner-case that used to crash: + + >>> def f(*xx, **__debug__): pass + Traceback (most recent call last): + SyntaxError: cannot assign to __debug__ + """ import re |