Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_array.py @ 43100:4e6b4ba60c3b
Remove the simple slicing API. All slicing is now done with slice objects.
| author | Thomas Wouters <thomas@python.org> |
|---|---|
| date | Thu, 30 Aug 2007 22:57:53 +0000 |
| parents | 27f0289b6835 |
| children | 8c10aac37037 |
line wrap: on
line diff
--- a/Lib/test/test_array.py Thu Aug 30 22:39:17 2007 +0000 +++ b/Lib/test/test_array.py Thu Aug 30 22:57:53 2007 +0000 @@ -562,12 +562,10 @@ ) a = array.array(self.typecode, self.example) - self.assertRaises(TypeError, a.__setslice__, 0, 0, None) self.assertRaises(TypeError, a.__setitem__, slice(0, 0), None) self.assertRaises(TypeError, a.__setitem__, slice(0, 1), None) b = array.array(self.badtypecode()) - self.assertRaises(TypeError, a.__setslice__, 0, 0, b) self.assertRaises(TypeError, a.__setitem__, slice(0, 0), b) self.assertRaises(TypeError, a.__setitem__, slice(0, 1), b)
