diff options
author | Thomas Wouters <thomas@python.org> | 2007-08-30 22:57:53 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2007-08-30 22:57:53 (GMT) |
commit | d2cf20eea2338a0369d4a5707adb01b201f7dfb2 (patch) | |
tree | 59fd4a094906997ae2b0cd520ff09010457da680 /Lib/test/test_long.py | |
parent | 582b5866174d20f7c027cbb6fb757fefb382f96f (diff) | |
download | cpython-d2cf20eea2338a0369d4a5707adb01b201f7dfb2.zip cpython-d2cf20eea2338a0369d4a5707adb01b201f7dfb2.tar.gz cpython-d2cf20eea2338a0369d4a5707adb01b201f7dfb2.tar.bz2 |
Remove the simple slicing API. All slicing is now done with slice objects.
Diffstat (limited to 'Lib/test/test_long.py')
-rw-r--r-- | Lib/test/test_long.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py index 4ba825a..bdda5d8 100644 --- a/Lib/test/test_long.py +++ b/Lib/test/test_long.py @@ -283,17 +283,6 @@ class LongTest(unittest.TestCase): self.assert_(type(y) is int, "overflowing int conversion must return long not long subtype") - # long -> Py_ssize_t conversion - class X(object): - def __getslice__(self, i, j): - return i, j - - self.assertEqual(X()[-5:7], (-5, 7)) - # use the clamping effect to test the smallest and largest longs - # that fit a Py_ssize_t - slicemin, slicemax = X()[-2**100:2**100] - self.assertEqual(X()[slicemin:slicemax], (slicemin, slicemax)) - # ----------------------------------- tests of auto int->long conversion def test_auto_overflow(self): |