mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
Fix memory consumption estimate in test_unicode_repr_wide
(on Martin's buildbot it still seems a bit inaccurate)
This commit is contained in:
parent
4574e62c6e
commit
0959554b39
@ -715,7 +715,7 @@ class StrTest(unittest.TestCase, BaseStrTest):
|
||||
finally:
|
||||
r = s = None
|
||||
|
||||
@bigmemtest(size=_2G // 5 + 1, memuse=ucs4_char_size + ascii_char_size * 10)
|
||||
@bigmemtest(size=_2G // 5 + 1, memuse=ucs4_char_size * 2 + ascii_char_size * 10)
|
||||
def test_unicode_repr_wide(self, size):
|
||||
char = "\U0001DCBA"
|
||||
s = char * size
|
||||
|
Loading…
Reference in New Issue
Block a user