gh-102856: Skip test_mismatched_parens in WASI builds (#103633)

This commit is contained in:
Pablo Galindo Salgado 2023-04-19 11:53:34 -06:00 committed by GitHub
parent 1ef61cf71a
commit 5f7d68e48d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import re
import types import types
import decimal import decimal
import unittest import unittest
from test import support
from test.support.os_helper import temp_cwd from test.support.os_helper import temp_cwd
from test.support.script_helper import assert_python_failure from test.support.script_helper import assert_python_failure
@ -536,6 +537,7 @@ x = (
r"""f'{("x}'""", r"""f'{("x}'""",
]) ])
@unittest.skipIf(support.is_wasi, "exhausts limited stack on WASI")
def test_mismatched_parens(self): def test_mismatched_parens(self):
self.assertAllRaise(SyntaxError, r"closing parenthesis '\}' " self.assertAllRaise(SyntaxError, r"closing parenthesis '\}' "
r"does not match opening parenthesis '\('", r"does not match opening parenthesis '\('",