Commit 8ac582f7 authored by Antoine Pitrou's avatar Antoine Pitrou

Fix size estimation for test_bigmem.StrTest.test_format

parent de21f846
...@@ -647,7 +647,9 @@ class StrTest(unittest.TestCase, BaseStrTest): ...@@ -647,7 +647,9 @@ class StrTest(unittest.TestCase, BaseStrTest):
def test_encode_ascii(self, size): def test_encode_ascii(self, size):
return self.basic_encode_test(size, 'ascii', c='A') return self.basic_encode_test(size, 'ascii', c='A')
@bigmemtest(size=_2G + 10, memuse=ascii_char_size * 2) # str % (...) uses a Py_UCS4 intermediate representation
@bigmemtest(size=_2G + 10, memuse=ascii_char_size * 2 + ucs4_char_size)
def test_format(self, size): def test_format(self, size):
s = '-' * size s = '-' * size
sf = '%s' % (s,) sf = '%s' % (s,)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment