Skip to content

bpo-39004: increment large sendfile() test timeout#17552

Merged
giampaolo merged 2 commits into
python:masterfrom
giampaolo:largefile-test-timeout
Dec 10, 2019
Merged

bpo-39004: increment large sendfile() test timeout#17552
giampaolo merged 2 commits into
python:masterfrom
giampaolo:largefile-test-timeout

Conversation

@giampaolo

@giampaolo giampaolo commented Dec 10, 2019

Copy link
Copy Markdown
Contributor

Comment thread Lib/test/test_largefile.py Outdated
class TestSocketSendfile(LargeFileTest, unittest.TestCase):
open = staticmethod(io.open)
timeout = 3
timeout = 20

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to use support.SHORT_TIMEOUT, or event support.LONG_TIMEOUT. See the new timeout constants:
https://docs.python.org/dev/library/test.html#test.support.LOOPBACK_TIMEOUT

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. Done.

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

FYI I have a local branch to replace dozens of hardcoded constants with the new test.support constants. But I didn't find time to create a proper PR yet.

@giampaolo giampaolo merged commit 8237497 into python:master Dec 10, 2019
@giampaolo giampaolo deleted the largefile-test-timeout branch December 10, 2019 09:31
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
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