summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-13 17:08:53 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-06-13 17:08:53 (GMT)
commit52c4bec76bdcb962e883eac1e55f98df488b558c (patch)
tree2e9aa28b526bc958a3c65099975f79cc59221ba7 /Lib
parent5d1ff94b9ef3052b4938c55b196c3594369e252a (diff)
downloadcpython-52c4bec76bdcb962e883eac1e55f98df488b558c.zip
cpython-52c4bec76bdcb962e883eac1e55f98df488b558c.tar.gz
cpython-52c4bec76bdcb962e883eac1e55f98df488b558c.tar.bz2
give a better error message when deleting ()
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_syntax.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index c1027b1..26d78ad 100644
--- a/Lib/test/test_syntax.py
+++ b/Lib/test/test_syntax.py
@@ -462,6 +462,12 @@ Traceback (most recent call last):
File "<doctest test.test_syntax[49]>", line 1
SyntaxError: keyword argument repeated
+>>> del ()
+Traceback (most recent call last):
+ ...
+ File "<doctest test.test_syntax[50]>", line 1
+SyntaxError: can't delete ()
+
"""
import re