diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-06 19:55:51 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-06 19:55:51 (GMT) |
commit | 8ac582f7461f250c44112ccc00859dc44de637fe (patch) | |
tree | 9c8df1222cc570bb72657c69c59a602dd1d5ffda /Lib/test | |
parent | de21f84680552cc6bf6d02dff676687dea4305c7 (diff) | |
download | cpython-8ac582f7461f250c44112ccc00859dc44de637fe.zip cpython-8ac582f7461f250c44112ccc00859dc44de637fe.tar.gz cpython-8ac582f7461f250c44112ccc00859dc44de637fe.tar.bz2 |
Fix size estimation for test_bigmem.StrTest.test_format
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_bigmem.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_bigmem.py b/Lib/test/test_bigmem.py index e41c010..08a0553 100644 --- a/Lib/test/test_bigmem.py +++ b/Lib/test/test_bigmem.py @@ -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,) |