]> granicus.if.org Git - python/commitdiff
Make the formula for this estimate more explicit
authorAntoine Pitrou <solipsis@pitrou.net>
Thu, 6 Oct 2011 20:09:18 +0000 (22:09 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Thu, 6 Oct 2011 20:09:18 +0000 (22:09 +0200)
Lib/test/test_bigmem.py

index 08a05530e448180526d0423d933c877836c23b85..2f50344f831270232f440a90bae49f0e15bc20eb 100644 (file)
@@ -374,7 +374,7 @@ class BaseStrTest:
     # 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 + _(' ')