-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
bpo-31627: Make test_mailbox be lenient to empty hostname. #3821
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-31627: Make test_mailbox be lenient to empty hostname. #3821
Conversation
There was a problem hiding this 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?
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. |
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6. |
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6. |
Sorry @serhiy-storchaka, I had trouble checking out the |
…honGH-3821) (cherry picked from commit f4ea642)
GH-3837 is a backport of this pull request to the 3.6 branch. |
…honGH-3821) (cherry picked from commit f4ea642)
GH-3838 is a backport of this pull request to the 2.7 branch. |
https://bugs.python.org/issue31627