diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2023-10-13 09:41:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-13 09:41:00 +0200 |
commit | 05439d308740b621d03562451a7608eb725937ae (patch) | |
tree | ecaf429881c2ba79749458898ceef9e188413089 /Lib/test/test_exceptions.py | |
parent | 2f59d418cf19ded355934da168729d12cbb94645 (diff) | |
download | cpython-05439d308740b621d03562451a7608eb725937ae.tar.gz cpython-05439d308740b621d03562451a7608eb725937ae.zip |
gh-107450: Fix parser column offset overflow test on Windows (#110768)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index bba2eeb8877..5d693939962 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -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 |