diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 5d693939962e1f2..271e9304305f139 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -1,6 +1,7 @@ # Python test set -- part 5, built-in exceptions import copy +import ctypes import os import sys import unittest @@ -320,7 +321,7 @@ def baz(): @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')")