Skip to content

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

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:short_timeout
Dec 11, 2019
Merged

bpo-38614: Use test.support.SHORT_TIMEOUT constant#17566
vstinner merged 1 commit intopython:masterfrom
vstinner:short_timeout

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner 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 merged commit 0d63bac into python:master Dec 11, 2019
@vstinner vstinner deleted the short_timeout branch December 11, 2019 10:30
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants