diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-04 08:22:36 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-04 08:22:36 (GMT) |
commit | 94190bb6e7f3b1c7942b562fe0fad3e62b5386b9 (patch) | |
tree | 3ac53b23c66b169c63815a36db6688e94e78c1e6 /Lib/test/test_xml_etree_c.py | |
parent | ffd41d9f101e31973b8713e884c95118fceb6f59 (diff) | |
download | cpython-94190bb6e7f3b1c7942b562fe0fad3e62b5386b9.zip cpython-94190bb6e7f3b1c7942b562fe0fad3e62b5386b9.tar.gz cpython-94190bb6e7f3b1c7942b562fe0fad3e62b5386b9.tar.bz2 |
Start fixing test_bigmem:
- bigmemtest is replaced by precisionbigmemtest
- add a poor man's watchdog thread to print memory consumption
Diffstat (limited to 'Lib/test/test_xml_etree_c.py')
-rw-r--r-- | Lib/test/test_xml_etree_c.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_xml_etree_c.py b/Lib/test/test_xml_etree_c.py index db69e5f..2ff118f 100644 --- a/Lib/test/test_xml_etree_c.py +++ b/Lib/test/test_xml_etree_c.py @@ -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") |