Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Sep 29, 2017

Copy link
Member

@warsaw warsaw left a comment

Choose a reason for hiding this comment

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

I agree with @bitdancer in bpo-31627 that a host without a hostname is misconfigured. Since this change is only in a test, would it be better to mock socket.gethostname() so that it doesn't return an empty hostname?

@bitdancer
Copy link
Member

Since the change doesn't weaken the test, I think we should not bother with a mock. This way if some weird hostname causes a real bug, we might get a report. With a mock, we'd miss that.

@serhiy-storchaka serhiy-storchaka merged commit f4ea642 into python:master Sep 30, 2017
@miss-islington
Copy link
Contributor

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington
Copy link
Contributor

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry @serhiy-storchaka, I had trouble checking out the 2.7 backport branch.
Please backport using cherry_picker on command line.
cherry_picker f4ea642cb60556231e714089a79d3c59c202661e 2.7

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 30, 2017
@bedevere-bot
Copy link

GH-3837 is a backport of this pull request to the 3.6 branch.

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Sep 30, 2017
@bedevere-bot
Copy link

GH-3838 is a backport of this pull request to the 2.7 branch.

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.

6 participants