]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-150397: Fix pyexpat bigmem test (GH-151329) (#151349)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 11 Jun 2026 15:17:19 +0000 (17:17 +0200)
committerGitHub <noreply@github.com>
Thu, 11 Jun 2026 15:17:19 +0000 (15:17 +0000)
gh-150397: Fix pyexpat bigmem test (GH-151329)

Add missing parameter (size).
(cherry picked from commit 0bbde07a0bbad3c79073fd133d6df70837e4cfee)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_pyexpat.py

index dea472335b0b34273ae05c98c2b14d1c505f909c..88fbe76b8d1e89950f44525c379d17adeaeec536 100644 (file)
@@ -787,7 +787,7 @@ class ChardataBufferTest(unittest.TestCase):
     @support.requires_resource('cpu')
     @support.requires_resource('walltime')
     @support.bigmemtest(size=2**31, memuse=4, dry_run=False)
-    def test_large_character_data_does_not_crash(self):
+    def test_large_character_data_does_not_crash(self, size):
         # See https://github.com/python/cpython/issues/148441
         parser = expat.ParserCreate()
         parser.buffer_text = True