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 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
56import sys
67import textwrap
78import 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 )
You can’t perform that action at this time.
0 commit comments