Skip to content

Commit 5a33300

Browse files
Skip recursion test on PyPy
Reapplied from c1e4c95.
1 parent 5922183 commit 5a33300

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_inference.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from astroid.arguments import CallSite
3232
from astroid.bases import BoundMethod, Instance, UnboundMethod, UnionType
3333
from astroid.builder import AstroidBuilder, _extract_single_node, extract_node, parse
34-
from astroid.const import PY39_PLUS, PY310_PLUS
34+
from astroid.const import IS_PYPY, PY39_PLUS, PY310_PLUS
3535
from astroid.context import CallContext, InferenceContext
3636
from astroid.exceptions import (
3737
AstroidTypeError,
@@ -6976,6 +6976,9 @@ def test_imported_module_var_inferable3() -> None:
69766976
assert i_w_val.as_string() == "['w', 'v']"
69776977

69786978

6979+
@pytest.mark.skipif(
6980+
IS_PYPY, reason="Test run with coverage on PyPy sometimes raises a RecursionError"
6981+
)
69796982
def test_recursion_on_inference_tip() -> None:
69806983
"""Regression test for recursion in inference tip.
69816984

0 commit comments

Comments
 (0)