mirror of https://github.com/python/cpython
parent
52e29072e1
commit
b71c0956d0
|
@ -464,6 +464,13 @@ class UnicodeTest(string_tests.CommonTest,
|
|||
self.checkraises(TypeError, ' ', 'join', [1, 2, 3])
|
||||
self.checkraises(TypeError, ' ', 'join', ['1', '2', 3])
|
||||
|
||||
@unittest.skipIf(sys.maxsize > 2**32,
|
||||
'needs too much memory on a 64-bit platform')
|
||||
def test_join_overflow(self):
|
||||
size = int(sys.maxsize**0.5) + 1
|
||||
seq = ('A' * size,) * size
|
||||
self.assertRaises(OverflowError, ''.join, seq)
|
||||
|
||||
def test_replace(self):
|
||||
string_tests.CommonTest.test_replace(self)
|
||||
|
||||
|
|
Loading…
Reference in New Issue