Fix bug 3625: test issues on 64bit windows. r=pitrou

This commit is contained in:
Mark Hammond 2008-08-23 00:59:14 +00:00
parent 94a730540a
commit 69ed524045
3 changed files with 3 additions and 3 deletions

View 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))