diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 5d693939962..eafa7d84638 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')")