Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_array.py @ 51064:1c50a17c0f21 3.0
As discussed on python-dev, remove several operator functions
isSequenceType(), isMappingType(), and isNumberType() in favor
of using abstract base classes. Also, remove repeat() and irepeat()
in favor of mul() and imul().
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Mon, 26 Jan 2009 03:44:49 +0000 |
| parents | 4229a4b14f1d |
| children | a6b02523b903 |
line wrap: on
line diff
--- a/Lib/test/test_array.py Mon Jan 26 02:22:01 2009 +0000 +++ b/Lib/test/test_array.py Mon Jan 26 03:44:49 2009 +0000 @@ -725,8 +725,6 @@ 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.irepeat, a, 2) - self.assertRaises(BufferError, operator.irepeat, a, 0) def test_weakref(self): s = array.array(self.typecode, self.example)
