[Python-checkins] python/dist/src/Lib/test test_enumerate.py, 1.8, 1.9

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Sun Feb 8 05:49:44 EST 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8935/Lib/test

Modified Files:
	test_enumerate.py 
Log Message:
Let reversed() work with itself.

Index: test_enumerate.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_enumerate.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** test_enumerate.py	16 Nov 2003 16:17:48 -0000	1.8
--- test_enumerate.py	8 Feb 2004 10:49:41 -0000	1.9
***************
*** 142,145 ****
--- 142,149 ----
          self.assertEqual(type(reversed(x)), type(iter(x)))
  
+     def test_double_reverse(self):
+         s = 'hello'
+         self.assertEqual(list(reversed(reversed(s))), list(s))
+ 
  def test_main(verbose=None):
      testclasses = (EnumerateTestCase, SubclassTestCase, TestEmpty, TestBig,




More information about the Python-checkins mailing list