summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_array.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-01-26 02:09:03 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-01-26 02:09:03 (GMT)
commit89e12963ad7f0551b325b282267ad21011aa5fd7 (patch)
treec9cd271493eea6347e0d171a6fff80db75c4accb /Lib/test/test_array.py
parentd0005ff41fdb3e8806aaaf812a71ba507a83b14c (diff)
downloadcpython-89e12963ad7f0551b325b282267ad21011aa5fd7.zip
cpython-89e12963ad7f0551b325b282267ad21011aa5fd7.tar.gz
cpython-89e12963ad7f0551b325b282267ad21011aa5fd7.tar.bz2
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(). After the buildbots have had a go at this. Will backport to Py3.0.1. For Py2.7, will just mark as deprecated.
Diffstat (limited to 'Lib/test/test_array.py')
-rwxr-xr-xLib/test/test_array.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py
index 2b80a7d..08c64cb 100755
--- a/Lib/test/test_array.py
+++ b/Lib/test/test_array.py
@@ -725,8 +725,6 @@ 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.irepeat, a, 2)
- self.assertRaises(BufferError, operator.irepeat, a, 0)
def test_weakref(self):
s = array.array(self.typecode, self.example)