Commit 9fda73cd authored by Tim Peters's avatar Tim Peters

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).
parent cf31d5d5
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment