[Python-checkins] python/dist/src/Lib/test test_cookie.py, 1.13, 1.14

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Sun Jan 4 06:14:53 EST 2004


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

Modified Files:
	test_cookie.py 
Log Message:
Exercise sorted() where possible

Index: test_cookie.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_cookie.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** test_cookie.py	29 Dec 2002 16:45:06 -0000	1.13
--- test_cookie.py	4 Jan 2004 11:14:51 -0000	1.14
***************
*** 24,30 ****
      print repr(C)
      print str(C)
!     items = dict.items()
!     items.sort()
!     for k, v in items:
          print ' ', k, repr( C[k].value ), repr(v)
          verify(C[k].value == v)
--- 24,28 ----
      print repr(C)
      print str(C)
!     for k, v in sorted(dict.iteritems()):
          print ' ', k, repr( C[k].value ), repr(v)
          verify(C[k].value == v)





More information about the Python-checkins mailing list