]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-107450: Fix testMemoryErrorBigSource using the bigmemtest decorator (GH-110810)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Fri, 13 Oct 2023 08:30:56 +0000 (10:30 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Oct 2023 08:30:56 +0000 (08:30 +0000)
Lib/test/test_exceptions.py

index 5d693939962e1f2f178eb89aca6b03fcaf7b201d..eafa7d84638b765f0c9c614f035b703483d62a79 100644 (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')")