mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
gh-116303: Skip tests if C recursion limit is unavailable (GH-117368)
The test suite fetches the C recursion limit from the _testcapi extension module. Test extension modules can be disabled using the --disable-test-modules configure option.
This commit is contained in:
parent
9a12f5d1c1
commit
ca62ffd1a5
14 changed files with 32 additions and 35 deletions
|
@ -352,7 +352,7 @@ def blowstack(fxn, arg, compare_to):
|
|||
# Make sure that calling isinstance with a deeply nested tuple for its
|
||||
# argument will raise RecursionError eventually.
|
||||
tuple_arg = (compare_to,)
|
||||
for cnt in range(support.EXCEEDS_RECURSION_LIMIT):
|
||||
for cnt in range(support.exceeds_recursion_limit()):
|
||||
tuple_arg = (tuple_arg,)
|
||||
fxn(arg, tuple_arg)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue