Index: test_list.py =================================================================== --- test_list.py (revision 65921) +++ test_list.py (working copy) @@ -15,7 +15,7 @@ self.assertEqual(list(''), []) self.assertEqual(list('spam'), ['s', 'p', 'a', 'm']) - if sys.maxint == 0x7fffffff: + if sys.maxint == 0x7fffffff and "64 bit" not in sys.version: # This test can currently only work on 32-bit machines. # XXX If/when PySequence_Length() returns a ssize_t, it should be # XXX re-enabled. Index: test_struct.py =================================================================== --- test_struct.py (revision 65921) +++ test_struct.py (working copy) @@ -8,7 +8,7 @@ import sys ISBIGENDIAN = sys.byteorder == "big" -IS32BIT = sys.maxint == 0x7fffffff +IS32BIT = sys.maxint == 0x7fffffff and "64 bit" not in sys.version del sys try: Index: test_bytes.py =================================================================== --- test_bytes.py (revision 65921) +++ test_bytes.py (working copy) @@ -211,9 +211,12 @@ self.assertEqual(b * -1, b"") self.assertRaises(TypeError, lambda: b * 3.14) self.assertRaises(TypeError, lambda: 3.14 * b) - # XXX Shouldn't bytes and bytearray agree on what to raise? - self.assertRaises((OverflowError, MemoryError), - lambda: b * sys.maxint) + # a 64bit machine with a 32bit sys.maxint may be able to allocate + # all that memory (but it would hurt :) + if not (sys.maxint == 0x7fffffff and "64 bit" in sys.version): + # XXX Shouldn't bytes and bytearray agree on what to raise? + self.assertRaises((OverflowError, MemoryError), + lambda: b * sys.maxint) def test_repeat_1char(self): self.assertEqual(self.type2test(b'x')*100, self.type2test([ord('x')]*100))