mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Resurrect two buffer tests, converting irepeat() to imul(). Undoes part of r68962.
This commit is contained in:
parent
957929fa88
commit
3471b1c865
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue