mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #19886: Use better estimated memory requirements for bigmem tests.
Incorrect requirements can cause memory swapping.
This commit is contained in:
parent
f451112413
commit
4847e4e1f4
6 changed files with 20 additions and 28 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue