Issue #19886: Use better estimated memory requirements for bigmem tests.

Incorrect requirements can cause memory swapping.
This commit is contained in:
Serhiy Storchaka 2014-01-10 13:37:54 +02:00
parent f451112413
commit 4847e4e1f4
6 changed files with 20 additions and 28 deletions

View file

@ -12,10 +12,8 @@ cET_alias = import_fresh_module('xml.etree.cElementTree',
class MiscTests(unittest.TestCase):
# Issue #8651.
@support.bigmemtest(size=support._2G + 100, memuse=1)
@support.bigmemtest(size=support._2G + 100, memuse=1, dry_run=False)
def test_length_overflow(self, size):
if size < support._2G + 100:
self.skipTest("not enough free memory, need at least 2 GB")
data = b'x' * size
parser = cET.XMLParser()
try: