diff options
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r-- | Lib/test/test_syntax.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index a0f487d4ed..4a2899ebca 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -43,6 +43,10 @@ SyntaxError: invalid syntax Traceback (most recent call last): SyntaxError: cannot assign to True +>>> (True := 1) +Traceback (most recent call last): +SyntaxError: cannot use named assignment with True + >>> obj.__debug__ = 1 Traceback (most recent call last): SyntaxError: cannot assign to __debug__ |