Skip to content

Commit c93f6a7

Browse files
committed
tests: fix regression test for deeply nested parentheses on PyPy3.10
1 parent e47e3b8 commit c93f6a7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_regrtest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# For details: https://github.com/pylint-dev/astroid/blob/main/LICENSE
33
# Copyright (c) https://github.com/pylint-dev/astroid/blob/main/CONTRIBUTORS.txt
44

5+
import platform
56
import sys
67
import textwrap
78
import unittest
@@ -569,4 +570,7 @@ def test_regression_parse_deeply_nested_parentheses() -> None:
569570
extract_node(
570571
"A=((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((c,j=t"
571572
)
572-
assert isinstance(ctx.value.error, MemoryError)
573+
expected = (
574+
SyntaxError if platform.python_implementation() == "PyPy" else MemoryError
575+
)
576+
assert isinstance(ctx.value.error, expected)

0 commit comments

Comments
 (0)