From: Tim Peters Date: Fri, 26 Oct 2001 20:57:38 +0000 (+0000) Subject: dict_constructor(): The last test was passing for the wrong reason (it X-Git-Tag: v2.2.1c1~1018 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9fda73cdd13d1fcd6aace395481cef3d7c94e5c1;p=python 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). --- diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 230d6a16c8..f5daf261dd 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: