Skip to content

Commit

Permalink
pythonGH-111801: set a lower recursion limit for `test_infintely_many…
Browse files Browse the repository at this point in the history
…_bases()` in `test_isinstance` (python#113997)
  • Loading branch information
brettcannon authored and Glyphack committed Jan 27, 2024
1 parent aae7cc2 commit a2a810d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_isinstance.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ class B:
pass
A.__getattr__ = B.__getattr__ = X.__getattr__
return (A(), B())
with support.infinite_recursion():
with support.infinite_recursion(25):
self.assertRaises(RecursionError, issubclass, X(), int)


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Lower the recursion limit in ``test_isinstance`` for
``test_infinitely_many_bases()``. This prevents a stack overflow on a
pydebug build of WASI.

0 comments on commit a2a810d

Please sign in to comment.