[Python-checkins] python/dist/src/Lib/test test_deque.py,1.1,1.2

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Fri Feb 6 14:04:59 EST 2004


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

Modified Files:
	test_deque.py 
Log Message:
Have deques support high volume loads.

Index: test_deque.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_deque.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_deque.py	29 Jan 2004 06:37:49 -0000	1.1
--- test_deque.py	6 Feb 2004 19:04:56 -0000	1.2
***************
*** 29,32 ****
--- 29,44 ----
          self.assertEqual(list(d), range(50, 150))
  
+     def test_extend(self):
+         d = deque('a')
+         self.assertRaises(TypeError, d.extend, 1)
+         d.extend('bcd')
+         self.assertEqual(list(d), list('abcd'))
+ 
+     def test_extendleft(self):
+         d = deque('a')
+         self.assertRaises(TypeError, d.extendleft, 1)
+         d.extendleft('bcd')
+         self.assertEqual(list(d), list(reversed('abcd')))
+ 
      def test_len(self):
          d = deque('ab')




More information about the Python-checkins mailing list