gh-107450: Fix testMemoryErrorBigSource using the bigmemtest decorator (GH-110810)

This commit is contained in:
Lysandros Nikolaou 2023-10-13 10:30:56 +02:00 committed by GitHub
parent 989a253947
commit 2a68f77026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ class ExceptionTests(unittest.TestCase):
@support.requires_resource('cpu')
@support.bigmemtest(support._2G, memuse=1.5)
def testMemoryErrorBigSource(self):
def testMemoryErrorBigSource(self, _size):
with self.assertRaises(OverflowError):
exec(f"if True:\n {' ' * 2**31}print('hello world')")