Skip to content

Commit f66866b

Browse files
committed
TASK_WAITER_CHAIN_DEPTH in test
1 parent 353f815 commit f66866b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_external_inspection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3809,6 +3809,7 @@ class TestFrameChainLimits(RemoteInspectionTestBase):
38093809
"""Frame chain walks abort instead of looping/overflowing on deep chains."""
38103810

38113811
CHAIN_DEPTH = 1024 + 512 + 1
3812+
TASK_WAITER_CHAIN_DEPTH = 512 + 1
38123813

38133814
def _assert_unwinder_limit_error(self, unwind, expected_substring):
38143815
"""Call unwind() until it raises the frame chain limit error.
@@ -3883,7 +3884,7 @@ async def chain(n):
38833884
task = asyncio.create_task(chain(n - 1))
38843885
await task
38853886
3886-
asyncio.run(chain({self.CHAIN_DEPTH}))
3887+
asyncio.run(chain({self.TASK_WAITER_CHAIN_DEPTH}))
38873888
"""
38883889
with self._target_process(script_body) as (p, client_socket, _):
38893890
_wait_for_signal(client_socket, b"ready")

0 commit comments

Comments
 (0)