]> granicus.if.org Git - python/commitdiff
Fix bug 3625: test issues on 64bit windows. r=pitrou
authorMark Hammond <mhammond@skippinet.com.au>
Sat, 23 Aug 2008 00:59:14 +0000 (00:59 +0000)
committerMark Hammond <mhammond@skippinet.com.au>
Sat, 23 Aug 2008 00:59:14 +0000 (00:59 +0000)
Lib/test/test_bytes.py
Lib/test/test_list.py
Lib/test/test_struct.py

index 6604b1eacfde30ec6edc011fed4a10bca7dd41c5..2873beaf5076f797563a561c23a03e9d2e9d07bb 100644 (file)
@@ -213,7 +213,7 @@ class BaseBytesTest(unittest.TestCase):
             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))
index 336baec795a6fac1123db807f48c03072738760d..167293a168d0e2a5a7283f312ef63615d3b742d5 100644 (file)
@@ -15,7 +15,7 @@ class ListTest(list_tests.CommonTest):
         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 5e4f0cccc35af084139fe324435139561a1499bc..ec4a2dbc43eac81007827b892164be6bc8e73056 100644 (file)
@@ -8,7 +8,7 @@ from test.test_support import TestFailed, verbose, run_unittest, catch_warning
 
 import sys
 ISBIGENDIAN = sys.byteorder == "big"
-IS32BIT = sys.maxint == 0x7fffffff
+IS32BIT = sys.maxsize == 0x7fffffff
 del sys
 
 try: