bpo-31627: Make test_mailbox be lenient to empty hostname.#3821
Conversation
warsaw
left a comment
There was a problem hiding this comment.
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