mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Fix size estimation for test_bigmem.StrTest.test_format
This commit is contained in:
parent
de21f84680
commit
8ac582f746
1 changed files with 3 additions and 1 deletions
|
@ -647,7 +647,9 @@ class StrTest(unittest.TestCase, BaseStrTest):
|
|||
def test_encode_ascii(self, size):
|
||||
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):
|
||||
s = '-' * size
|
||||
sf = '%s' % (s,)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue