summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-05-27 01:18:39 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-05-27 01:18:39 (GMT)
commit838c7b3619cc8c68d115235c4bf3b0ab19eb5d04 (patch)
treeec348f76b4fb9c3bec38683b5d7499edc1b3e64a /Lib/test/test_support.py
parent933d3731deab19b2565fbb0d07511e67277d3d58 (diff)
downloadcpython-838c7b3619cc8c68d115235c4bf3b0ab19eb5d04.zip
cpython-838c7b3619cc8c68d115235c4bf3b0ab19eb5d04.tar.gz
cpython-838c7b3619cc8c68d115235c4bf3b0ab19eb5d04.tar.bz2
remove some __getslice__
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r--Lib/test/test_support.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index 620d625..848c7d1 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -597,11 +597,7 @@ _1M = 1024*1024
_1G = 1024 * _1M
_2G = 2 * _1G
-# Hack to get at the maximum value an internal index can take.
-class _Dummy:
- def __getslice__(self, i, j):
- return j
-MAX_Py_ssize_t = _Dummy()[:]
+MAX_Py_ssize_t = sys.maxsize
def set_memlimit(limit):
import re