gh-106505: don't lookup own hostname in getfqdn() - #106506
Conversation
serhiy-storchaka
left a comment
There was a problem hiding this comment.
Does it covered by existing tests? If no, please add tests.
Also, please correct the NEWS entry. The sentence should start with a title character and end with a period.
|
@serhiy-storchaka Thanks, I'll fix the NEWS entry. For the tests, though, can you give any advice on how I could implement the test, since the correct result depends on the OS configuration? Is it OK to just call |
|
I do not know. Does this change affect any of our buildbots? I would write a PR containing test that compares the result of the old implementation of |
NEWS entries must start with a title case letter and end with a period — the entry was also rewritten to match the usual wording of entries
In many cases, and I assume for all Python buildbots, such tests would pass, as For tests, I could write some that mock |
|
This PR is stale because it has been open for 30 days with no activity. |
gethostname()immediately instead of resolving it