Commit 3471b1c8 authored by Raymond Hettinger's avatar Raymond Hettinger

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

parent 957929fa
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment