diff options
author | Raymond Hettinger <python@rcn.com> | 2009-01-27 11:06:40 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-01-27 11:06:40 (GMT) |
commit | 3471b1c865130911e7960f7754164a57e0d652c5 (patch) | |
tree | c426be930f3c82e9c431a8ac18d1a2e6ba288513 /Lib | |
parent | 957929fa88998279dd0440d55f7b1de04810b911 (diff) | |
download | cpython-3471b1c865130911e7960f7754164a57e0d652c5.zip cpython-3471b1c865130911e7960f7754164a57e0d652c5.tar.gz cpython-3471b1c865130911e7960f7754164a57e0d652c5.tar.bz2 |
Resurrect two buffer tests, converting irepeat() to imul(). Undoes part of r68962.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/test/test_array.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index 08c64cb..c8698bb 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) |