diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-03-05 20:42:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 20:42:06 +0200 |
commit | d8b3a98c9098c66a714fd5593e1928af0ffbc631 (patch) | |
tree | dc9c2290f796ec697adcfa12942f773646f8f13c /Lib/test/test_syntax.py | |
parent | adfffc7343ce7ebc88ec734a803d3247ba8927fb (diff) | |
download | cpython-git-d8b3a98c9098c66a714fd5593e1928af0ffbc631.tar.gz |
bpo-36187: Remove NamedStore. (GH-12167)
NamedStore has been replaced with Store. The difference between
NamedStore and Store is handled when precess the NamedExpr node
one level upper.
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__ |