[Python-checkins] r69021 - python/branches/release30-maint/Lib/test/test_array.py

raymond.hettinger python-checkins at python.org
Tue Jan 27 12:04:59 CET 2009


Author: raymond.hettinger
Date: Tue Jan 27 12:04:59 2009
New Revision: 69021

Log:
Resurrect two buffer tests, converting irepeat() to imul().  Undoes part of r68962.

Modified:
   python/branches/release30-maint/Lib/test/test_array.py

Modified: python/branches/release30-maint/Lib/test/test_array.py
==============================================================================
--- python/branches/release30-maint/Lib/test/test_array.py	(original)
+++ python/branches/release30-maint/Lib/test/test_array.py	Tue Jan 27 12:04:59 2009
@@ -725,6 +725,8 @@
         self.assertRaises(BufferError, operator.setitem, a, slice(0, 0), a)
         self.assertRaises(BufferError, operator.delitem, a, 0)
         self.assertRaises(BufferError, operator.delitem, a, slice(0, 1))
+        self.assertRaises(BufferError, operator.imul, a, 2)
+        self.assertRaises(BufferError, operator.imul, a, 0)
 
     def test_weakref(self):
         s = array.array(self.typecode, self.example)


More information about the Python-checkins mailing list