diff options
author | Raymond Hettinger <python@rcn.com> | 2009-01-26 02:09:03 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-01-26 02:09:03 +0000 |
commit | 89e12963ad7f0551b325b282267ad21011aa5fd7 (patch) | |
tree | c9cd271493eea6347e0d171a6fff80db75c4accb /Lib/test/test_array.py | |
parent | d0005ff41fdb3e8806aaaf812a71ba507a83b14c (diff) | |
download | cpython-git-89e12963ad7f0551b325b282267ad21011aa5fd7.tar.gz |
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-x | Lib/test/test_array.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index 2b80a7d041..08c64cb73c 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) |