diff options
author | Dong-hee Na <donghee.na@python.org> | 2021-08-26 09:52:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-26 09:52:21 (GMT) |
commit | 32c1caa87f68a650f2d009a589a1db30484499cb (patch) | |
tree | ca601bc57044aee865699b6a6c2879df46d1cac6 /Lib/test | |
parent | 6ea6cf22e9d084c27a4fffbbd298098a6ad5b776 (diff) | |
download | cpython-32c1caa87f68a650f2d009a589a1db30484499cb.zip cpython-32c1caa87f68a650f2d009a589a1db30484499cb.tar.gz cpython-32c1caa87f68a650f2d009a589a1db30484499cb.tar.bz2 |
bpo-45000: Raise SyntaxError when try to delete __debug__ (GH-27947) (GH-27957)
(cherry picked from commit 551da597a0996b0fb3af425f48aa5bc63ea6b963)
Diffstat (limited to 'Lib/test')
-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 88503dc..43780ce 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -59,6 +59,10 @@ SyntaxError: cannot assign to __debug__ Traceback (most recent call last): SyntaxError: cannot assign to __debug__ +>>> del __debug__ +Traceback (most recent call last): +SyntaxError: cannot delete __debug__ + >>> f() = 1 Traceback (most recent call last): SyntaxError: cannot assign to function call here. Maybe you meant '==' instead of '='? |