]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Rewrite the `hostname mismatch' test as per GvR suggestion.
authorBarry Warsaw <barry@python.org>
Mon, 13 Jan 1997 19:35:39 +0000 (19:35 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 13 Jan 1997 19:35:39 +0000 (19:35 +0000)
commitdbfb8d46260e29d2ca3068174aeeadced057b5fe
tree562e5f7ed48d557d8b6331c8f67f45419bdb5c32
parentd08735a54b8aa249482d028a6d998bd9a08ad957
Rewrite the `hostname mismatch' test as per GvR suggestion.

Don't assume gethostbyaddr()'s primary hostname is the same as
gethostname(), or even that gethostname() can be found in the list of
hosts returned by gethostbyaddr().  We do test for at least one FQDN
in gethostbyaddr().
Lib/test/test_socket.py