mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #19886: Use better estimated memory requirements for bigmem tests.
Incorrect requirements can cause memory swapping.
This commit is contained in:
commit
786ac7b27d
6 changed files with 27 additions and 35 deletions
|
|
@ -13,10 +13,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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue