File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 2
2
# For details: https://github.com/pylint-dev/astroid/blob/main/LICENSE
3
3
# Copyright (c) https://github.com/pylint-dev/astroid/blob/main/CONTRIBUTORS.txt
4
4
5
+ import platform
5
6
import sys
6
7
import textwrap
7
8
import unittest
@@ -569,4 +570,7 @@ def test_regression_parse_deeply_nested_parentheses() -> None:
569
570
extract_node (
570
571
"A=((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((c,j=t"
571
572
)
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 )
You can’t perform that action at this time.
0 commit comments