[Python-checkins] cpython: Make the formula for this estimate more explicit
antoine.pitrou
python-checkins at python.org
Thu Oct 6 22:13:03 CEST 2011
http://hg.python.org/cpython/rev/e795ab617914
changeset: 72763:e795ab617914
user: Antoine Pitrou <solipsis at pitrou.net>
date: Thu Oct 06 22:09:18 2011 +0200
summary:
Make the formula for this estimate more explicit
files:
Lib/test/test_bigmem.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_bigmem.py b/Lib/test/test_bigmem.py
--- a/Lib/test/test_bigmem.py
+++ b/Lib/test/test_bigmem.py
@@ -374,7 +374,7 @@
# suffer for the list size. (Otherwise, it'd cost another 48 times
# size in bytes!) Nevertheless, a list of size takes
# 8*size bytes.
- @bigmemtest(size=_2G + 5, memuse=10)
+ @bigmemtest(size=_2G + 5, memuse=2 * ascii_char_size + 8)
def test_split_large(self, size):
_ = self.from_latin1
s = _(' a') * size + _(' ')
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list