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

This commit is contained in:
Raymond Hettinger 2009-01-27 11:06:40 +00:00
parent 957929fa88
commit 3471b1c865
1 changed files with 2 additions and 0 deletions

View File

@ -725,6 +725,8 @@ class BaseTest(unittest.TestCase):
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)