Skip to content

Commit

Permalink
Fix test.support.Py_C_RECURSION_LIMIT to reflect `Include/cpython/p…
Browse files Browse the repository at this point in the history
…ystate.h` more accurately
  • Loading branch information
brettcannon committed Nov 17, 2023
1 parent 0c61d02 commit 721c3fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2360,7 +2360,7 @@ def _get_c_recursion_limit():
import _testcapi
return _testcapi.Py_C_RECURSION_LIMIT
except (ImportError, AttributeError):
return 1500 # (from Include/cpython/pystate.h)
return 1500 if not is_wasi else 500 # From Include/cpython/pystate.h

# The default C recursion limit.
Py_C_RECURSION_LIMIT = _get_c_recursion_limit()
Expand Down

0 comments on commit 721c3fa

Please sign in to comment.