Index: test_list.py =================================================================== --- test_list.py (revision 65930) +++ 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.maxsize == 0x7fffffff: # 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 65930) +++ test_struct.py (working copy) @@ -8,7 +8,7 @@ import sys ISBIGENDIAN = sys.byteorder == "big" -IS32BIT = sys.maxint == 0x7fffffff +IS32BIT = sys.maxsize == 0x7fffffff del sys try: Index: test_bytes.py =================================================================== --- test_bytes.py (revision 65930) +++ test_bytes.py (working copy) @@ -213,7 +213,7 @@ 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) + lambda: b * sys.maxsize) def test_repeat_1char(self): self.assertEqual(self.type2test(b'x')*100, self.type2test([ord('x')]*100))