summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-10-26 20:57:38 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-10-26 20:57:38 (GMT)
commit9fda73cdd13d1fcd6aace395481cef3d7c94e5c1 (patch)
treef77a52e462287dea9eab856ab142d333b060e22f /Lib
parentcf31d5d5d01dfcddc99bd3888543d4c161914ac3 (diff)
downloadcpython-9fda73cdd13d1fcd6aace395481cef3d7c94e5c1.zip
cpython-9fda73cdd13d1fcd6aace395481cef3d7c94e5c1.tar.gz
cpython-9fda73cdd13d1fcd6aace395481cef3d7c94e5c1.tar.bz2
dict_constructor(): The last test was passing for the wrong reason (it
was intended to verify that sub-sequences of lengths 1 and 3 raise ValueError, but was actually testing string lengths).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_descr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 230d6a1..f5daf26 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -247,7 +247,7 @@ def dict_constructor():
vereq(d, dictionary([(i, i+1) for i in range(4)]))
# Bad sequence lengths.
- for bad in ['tooshort'], ['too', 'long', 'by 1']:
+ for bad in [('tooshort',)], [('too', 'long', 'by 1')]:
try:
dictionary(bad)
except ValueError: