Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26748ed commit b2a95f6Copy full SHA for b2a95f6
Lib/test/test_exceptions.py
@@ -318,8 +318,10 @@ def baz():
318
check('(yield i) = 2', 1, 2)
319
check('def f(*):\n pass', 1, 7)
320
321
- def testMemoryErrorBigSource(self):
322
- with self.assertRaisesRegex(OverflowError, "column offset overflow"):
+ @support.requires_resource('cpu')
+ @support.bigmemtest(support._2G, memuse=1.5)
323
+ def testMemoryErrorBigSource(self, _size):
324
+ with self.assertRaises(OverflowError):
325
exec(f"if True:\n {' ' * 2**31}print('hello world')")
326
327
@cpython_only
0 commit comments