Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b2a95f6

Browse files
miss-islingtonlysnikolaousobolevn
authored
[3.11] gh-107450: Fix parser column offset overflow test on Windows (GH-110768) (#110809)
(cherry picked from commit 05439d3) Co-authored-by: Lysandros Nikolaou <[email protected]> Co-authored-by: Nikita Sobolev <[email protected]>
1 parent 26748ed commit b2a95f6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/test/test_exceptions.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,10 @@ def baz():
318318
check('(yield i) = 2', 1, 2)
319319
check('def f(*):\n pass', 1, 7)
320320

321-
def testMemoryErrorBigSource(self):
322-
with self.assertRaisesRegex(OverflowError, "column offset overflow"):
321+
@support.requires_resource('cpu')
322+
@support.bigmemtest(support._2G, memuse=1.5)
323+
def testMemoryErrorBigSource(self, _size):
324+
with self.assertRaises(OverflowError):
323325
exec(f"if True:\n {' ' * 2**31}print('hello world')")
324326

325327
@cpython_only

0 commit comments

Comments
 (0)