Skip to content

Commit

Permalink
pythongh-107450: Fix parser column offset overflow test on Windows (p…
Browse files Browse the repository at this point in the history
…ython#110768)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
  • Loading branch information
lysnikolaou and sobolevn authored Oct 13, 2023
1 parent 2f59d41 commit 05439d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Lib/test/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,10 @@ def baz():
check('(yield i) = 2', 1, 2)
check('def f(*):\n pass', 1, 7)

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

@cpython_only
Expand Down

0 comments on commit 05439d3

Please sign in to comment.