mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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:
parent
ffd41d9f10
commit
94190bb6e7
6 changed files with 203 additions and 164 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue