Skip to content

Commit

Permalink
GH-111801: set a lower recursion limit for `test_infintely_many_bases…
Browse files Browse the repository at this point in the history
…()` in `test_isinstance` (#113997)
  • Loading branch information
brettcannon authored Jan 12, 2024
1 parent a47353d commit 3c19ee0
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 3c19ee0

Please sign in to comment.