]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-107450: Fix parser column offset overflow test on Windows (#110768)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Fri, 13 Oct 2023 07:41:00 +0000 (09:41 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Oct 2023 07:41:00 +0000 (09:41 +0200)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Lib/test/test_exceptions.py

index bba2eeb8877730a5a24f1effcc75f4d17b01454c..5d693939962e1f2f178eb89aca6b03fcaf7b201d 100644 (file)
@@ -318,8 +318,10 @@ class ExceptionTests(unittest.TestCase):
         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