diff options
author | Dong-hee Na <donghee.na@python.org> | 2021-08-25 17:54:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-25 17:54:20 (GMT) |
commit | 551da597a0996b0fb3af425f48aa5bc63ea6b963 (patch) | |
tree | b25b0cd691a97c00ede8fba1005d99643b25b952 /Lib | |
parent | 24da544014f78e6f1440d5ce5c2d14794a020340 (diff) | |
download | cpython-551da597a0996b0fb3af425f48aa5bc63ea6b963.zip cpython-551da597a0996b0fb3af425f48aa5bc63ea6b963.tar.gz cpython-551da597a0996b0fb3af425f48aa5bc63ea6b963.tar.bz2 |
bpo-45000: Raise SyntaxError when try to delete __debug__ (GH-27947)
Automerge-Triggered-By: GH:pablogsal
Diffstat (limited to 'Lib')
-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 '='? |