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 <lisandrosnik@gmail.com> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy