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-39004: increment large sendfile() test timeout #17552

Merged
merged 2 commits into from Dec 10, 2019

Conversation

@giampaolo
Copy link
Contributor

giampaolo commented Dec 10, 2019

@@ -168,7 +168,7 @@ def test_it(self):
@unittest.skipIf(not hasattr(os, 'sendfile'), 'sendfile not supported')
class TestSocketSendfile(LargeFileTest, unittest.TestCase):
open = staticmethod(io.open)
timeout = 3
timeout = 20

This comment has been minimized.

Copy link
@vstinner

vstinner Dec 10, 2019

Member

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

This comment has been minimized.

Copy link
@giampaolo

giampaolo Dec 10, 2019

Author Contributor

Good idea. Done.

Copy link
Member

vstinner left a comment

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
4 checks passed
4 checks passed
Azure Pipelines PR #20191210.20 succeeded
Details
bedevere/issue-number Issue number 39004 found
Details
bedevere/news "skip news" label found
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@giampaolo giampaolo deleted the giampaolo:largefile-test-timeout branch Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.