Start fixing test_bigmem:

- bigmemtest is replaced by precisionbigmemtest
- add a poor man's watchdog thread to print memory consumption
This commit is contained in:
Antoine Pitrou 2011-10-04 10:22:36 +02:00
parent ffd41d9f10
commit 94190bb6e7
6 changed files with 203 additions and 164 deletions

View file

@ -1,7 +1,7 @@
# xml.etree test for cElementTree
from test import support
from test.support import precisionbigmemtest, _2G
from test.support import bigmemtest, _2G
import unittest
cET = support.import_module('xml.etree.cElementTree')
@ -35,7 +35,7 @@ def sanity():
class MiscTests(unittest.TestCase):
# Issue #8651.
@support.precisionbigmemtest(size=support._2G + 100, memuse=1)
@support.bigmemtest(size=support._2G + 100, memuse=1)
def test_length_overflow(self, size):
if size < support._2G + 100:
self.skipTest("not enough free memory, need at least 2 GB")