Skip to content

[3.11] gh-106883: Make test_current_frames_exceptions_deadlock faster#131182

Merged
pablogsal merged 2 commits intopython:3.11from
diegorusso:gh-106883-timeout
Mar 14, 2025
Merged

[3.11] gh-106883: Make test_current_frames_exceptions_deadlock faster#131182
pablogsal merged 2 commits intopython:3.11from
diegorusso:gh-106883-timeout

Conversation

@diegorusso
Copy link
Contributor

@diegorusso diegorusso commented Mar 13, 2025

On some platforms the test test_current_frames_exceptions_deadlock goes in timeout when CPython is built with debug.
The execution time of the test is about 4x and the current timeout is not enough to complete the test.

Make the test test_current_frames_exceptions_deadlock faster by decrementing the number of threads to the bare minimum and the number of objects by one order of magnitude.
These conditions are enough for a deadlock to happen.
Make use of support.SHORT_TIMEOUT which is 30 seconds by default.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants