diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index 8a261f5c82e..f668d31fa47 100644 --- a/Lib/test/string_tests.py +++ b/Lib/test/string_tests.py @@ -504,7 +504,7 @@ def test_mul(self): self.checkequal('abcabcabc', 'abc', '__mul__', 3) self.checkraises(TypeError, 'abc', '__mul__') self.checkraises(TypeError, 'abc', '__mul__', '') - self.checkraises(OverflowError, 10000*'abc', '__mul__', sys.maxint) + self.checkraises(OverflowError, 10000*'abc', '__mul__', 2000000000) def test_join(self): # join now works with any sequence type