From: Lysandros Nikolaou Date: Fri, 13 Oct 2023 08:30:56 +0000 (+0200) Subject: gh-107450: Fix testMemoryErrorBigSource using the bigmemtest decorator (GH-110810) X-Git-Tag: v3.13.0a1~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a68f77026417b3dc03635fa81da2dfa506f93c0;p=thirdparty%2FPython%2Fcpython.git gh-107450: Fix testMemoryErrorBigSource using the bigmemtest decorator (GH-110810) --- diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 5d693939962e..eafa7d84638b 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -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')")