[Python-checkins] CVS: python/dist/src/Lib/test test_descr.py,1.95,1.96

Tim Peters tim_one@users.sourceforge.net
Fri, 26 Oct 2001 13:57:41 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv3447/python/Lib/test

Modified Files:
	test_descr.py 
Log Message:
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).


Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.95
retrieving revision 1.96
diff -C2 -d -r1.95 -r1.96
*** test_descr.py	2001/10/26 05:06:50	1.95
--- test_descr.py	2001/10/26 20:57:38	1.96
***************
*** 248,252 ****
  
      # Bad sequence lengths.
!     for bad in ['tooshort'], ['too', 'long', 'by 1']:
          try:
              dictionary(bad)
--- 248,252 ----
  
      # Bad sequence lengths.
!     for bad in [('tooshort',)], [('too', 'long', 'by 1')]:
          try:
              dictionary(bad)