mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
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).
This commit is contained in:
parent
cf31d5d5d0
commit
9fda73cdd1
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ def dict_constructor():
|
||||||
vereq(d, dictionary([(i, i+1) for i in range(4)]))
|
vereq(d, dictionary([(i, i+1) for i in range(4)]))
|
||||||
|
|
||||||
# Bad sequence lengths.
|
# Bad sequence lengths.
|
||||||
for bad in ['tooshort'], ['too', 'long', 'by 1']:
|
for bad in [('tooshort',)], [('too', 'long', 'by 1')]:
|
||||||
try:
|
try:
|
||||||
dictionary(bad)
|
dictionary(bad)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue