Skip to content

Commit 7cfbad1

Browse files
Skip flaky recursion test on PyPy (#2661) (#2663)
Co-authored-by: Jacob Walls <[email protected]>
1 parent 50916d6 commit 7cfbad1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_transforms.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,9 @@ def transform_class(cls):
265265
"""
266266
)
267267

268+
@pytest.mark.skipif(
269+
IS_PYPY, reason="Could not find a useful recursion limit on all versions"
270+
)
268271
def test_transform_aborted_if_recursion_limited(self):
269272
def transform_call(node: Call) -> Const:
270273
return node
@@ -274,7 +277,7 @@ def transform_call(node: Call) -> Const:
274277
)
275278

276279
original_limit = sys.getrecursionlimit()
277-
sys.setrecursionlimit(500 if IS_PYPY else 1000)
280+
sys.setrecursionlimit(1000)
278281

279282
try:
280283
with pytest.warns(UserWarning) as records:

0 commit comments

Comments
 (0)