Skip to content

Commit 05439d3

Browse files
gh-107450: Fix parser column offset overflow test on Windows (#110768)
Co-authored-by: Nikita Sobolev <[email protected]>
1 parent 2f59d41 commit 05439d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_exceptions.py

+3-1
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+
@support.requires_resource('cpu')
322+
@support.bigmemtest(support._2G, memuse=1.5)
321323
def testMemoryErrorBigSource(self):
322-
with self.assertRaisesRegex(OverflowError, "column offset overflow"):
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)