mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +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
|
|
@ -3039,7 +3039,7 @@ class TestExtendedArgs(unittest.TestCase):
|
|||
|
||||
def test_trace_lots_of_globals(self):
|
||||
|
||||
count = min(1000, int(support.Py_C_RECURSION_LIMIT * 0.8))
|
||||
count = min(1000, int(support.get_c_recursion_limit() * 0.8))
|
||||
|
||||
code = """if 1:
|
||||
def f():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue