]> granicus.if.org Git - python/commit
bpo-29639: change test.support.HOST to "localhost"
authorGregory P. Smith <greg@krypto.org>
Sat, 9 Sep 2017 07:30:15 +0000 (00:30 -0700)
committerGitHub <noreply@github.com>
Sat, 9 Sep 2017 07:30:15 +0000 (00:30 -0700)
commitefb1d0a3c001a6153211063ba439b9847aa03509
treefdfc7187242eb8db236c5b2445b73c61e88b429f
parent829dacce4fca60fc3c3367980e75e21dfcdbe6be
bpo-29639: change test.support.HOST to "localhost"

test.support.HOST should be "localhost" as it was in the past. See the bpo-29639.

Tests that need the IP address should use HOSTv4 (added) or the existing HOSTv6 constant.

This changes the definition and fixes tests that needed updating to deal with HOST being
the hostname rather than the hardcoded IP address.

This is only the first step in addressing https://bugs.python.org/issue29639.
Lib/asyncore.py
Lib/test/support/__init__.py
Lib/test/test_smtpd.py
Lib/test/test_smtplib.py
Lib/test/test_socket.py
Misc/NEWS.d/next/Tests/2017-09-08-15-59-07.bpo-29639.yIZecp.rst [new file with mode: 0644]