[Python-checkins] python/dist/src/Lib/test test_enumerate.py, 1.10, 1.11

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Wed Mar 10 03:32:49 EST 2004


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

Modified Files:
	test_enumerate.py 
Log Message:
Eliminate the double reverse option.  It's only use case 
was academic and it was potentially confusing to use.



Index: test_enumerate.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_enumerate.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** test_enumerate.py	10 Feb 2004 09:33:39 -0000	1.10
--- test_enumerate.py	10 Mar 2004 08:32:47 -0000	1.11
***************
*** 142,150 ****
          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_len(self):
          s = 'hello'
          self.assertEqual(len(reversed(s)), len(s))
--- 142,147 ----
          self.assertEqual(type(reversed(x)), type(iter(x)))
  
      def test_len(self):
+         # This is an implementation detail, not an interface requirement
          s = 'hello'
          self.assertEqual(len(reversed(s)), len(s))




More information about the Python-checkins mailing list