Repository navigation
Closes #4445: add pytest-timeout - #4654
Merged
Merged
Conversation
ajpotts
force-pushed
the
4445_add_pytest-timeout
branch
from
June 23, 2025 19:31
19c28f3 to
56c8a3a
Compare
ajpotts
marked this pull request as ready for review
June 23, 2025 19:36
ajpotts
force-pushed
the
4445_add_pytest-timeout
branch
from
June 23, 2025 20:18
56c8a3a to
5f1a5cc
Compare
vasslitvinov
self-requested a review
June 24, 2025 00:09
vasslitvinov
approved these changes
Jun 24, 2025
ajpotts
enabled auto-merge
June 24, 2025 01:00
ajpotts
disabled auto-merge
June 24, 2025 01:00
This was referenced Jun 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds
pytest-timeoutto the project.pytest-timeoutcan be used to time out unit tests individually or over the entire project, as listed in the table below. However, it does not work well with ZMQ in multi-locale mode. In that scenario, if one test fail all subsequent tests will fail. Thus, the time out value should be set high enough that it will only be triggered rarely and indicate a serious problem with the tests.Summary
@pytest.mark.timeout(5)pytest.iniwithtimeout = 5pytest --timeout=5Closes #4445: add pytest-timeout