From: Raymond Hettinger Date: Tue, 27 Jan 2009 11:06:40 +0000 (+0000) Subject: Resurrect two buffer tests, converting irepeat() to imul(). Undoes part of r68962. X-Git-Tag: v3.1a1~369 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3471b1c865130911e7960f7754164a57e0d652c5;p=python Resurrect two buffer tests, converting irepeat() to imul(). Undoes part of r68962. --- diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index 08c64cb73c..c8698bb40e 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -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)