summaryrefslogtreecommitdiffstats
path: root/Lib/random.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-09-11 18:32:30 (GMT)
committerGuido van Rossum <guido@python.org>2002-09-11 18:32:30 (GMT)
commitc8060a68ffc3d9051c3c876c1d21cba8330dbb10 (patch)
tree0c92af2d2180613d8608808c9b548c00a0f55343 /Lib/random.py
parent4061cbee9c2dd6fd6d186f525af8925a44f4d2fc (diff)
downloadcpython-c8060a68ffc3d9051c3c876c1d21cba8330dbb10.zip
cpython-c8060a68ffc3d9051c3c876c1d21cba8330dbb10.tar.gz
cpython-c8060a68ffc3d9051c3c876c1d21cba8330dbb10.tar.bz2
The list(xrange(sys.maxint / 4)) test blew up on 64-bit platforms.
Because ob_size is a 32-bit int but sys.maxint is LONG_MAX which is a 64-bit value, there's no way to make this test succeed on a 64-bit platform. So just skip it when sys.maxint isn't 0x7fffffff. Backport candidate.
Diffstat (limited to 'Lib/random.py')
0 files changed, 0 insertions, 0 deletions