Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-38614: Use test.support.SHORT_TIMEOUT constant #17566

Merged
merged 1 commit into from Dec 11, 2019

Conversation

@vstinner
Copy link
Member

vstinner commented Dec 10, 2019

Replace hardcoded timeout constants in tests with SHORT_TIMEOUT of
test.support, so it's easier to ajdust this timeout for all tests at
once.

SHORT_TIMEOUT is 30 seconds by default, but it can be longer
depending on --timeout command line option.

The change makes almost all timeouts longer, except
test_reap_children() of test_support which is made 2x shorter:
SHORT_TIMEOUT should be enough. If this test starts to fail,
LONG_TIMEOUT should be used instead.

Uniformize also "from test import support" import in some test files.

https://bugs.python.org/issue38614

Replace hardcoded timeout constants in tests with SHORT_TIMEOUT of
test.support, so it's easier to ajdust this timeout for all tests at
once.

SHORT_TIMEOUT is 30 seconds by default, but it can be longer
depending on --timeout command line option.

The change makes almost all timeouts longer, except
test_reap_children() of test_support which is made 2x shorter:
SHORT_TIMEOUT should be enough. If this test starts to fail,
LONG_TIMEOUT should be used instead.

Uniformize also "from test import support" import in some test files.
@vstinner vstinner requested review from 1st1, asvetlov, gpshead and tiran as code owners Dec 10, 2019
@vstinner vstinner merged commit 0d63bac into python:master Dec 11, 2019
4 checks passed
4 checks passed
Azure Pipelines PR #20191210.42 succeeded
Details
bedevere/issue-number Issue number 38614 found
Details
bedevere/news News entry found in Misc/NEWS.d
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@vstinner vstinner deleted the vstinner:short_timeout branch Dec 11, 2019
sthagen added a commit to sthagen/cpython that referenced this pull request Dec 11, 2019
bpo-38614: Use test.support.SHORT_TIMEOUT constant (pythonGH-17566)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.