Skip to content

Commit

Permalink
Cover the Py_DEBUG case
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed Nov 17, 2023
1 parent 10ffc37 commit 9b37c98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2372,7 +2372,8 @@ def _get_c_recursion_limit():
import _testcapi
return _testcapi.Py_C_RECURSION_LIMIT
except (ImportError, AttributeError):
return 1500 if not is_wasi else 500 # From Include/cpython/pystate.h
# From Include/cpython/pystate.h .
return 1500 if not is_wasi and not Py_DEBUG else 500

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

0 comments on commit 9b37c98

Please sign in to comment.