Travis Xenial with
sudo: required is unable to resolve
localhost. as a name.
This is causing failures on tests for
urllib3/urllib3 while we’re trying to add testing for Python 3.8.
import socket conn = socket.create_connection(("localhost.", 80)) # Results in a socket.gaierror() when a server is running.
See: https://travis-ci.org/urllib3/urllib3/jobs/455782940 where all 3 tests that are failing attempt to connect to
localhost.. All tests pass on Trusty, macOS, and Windows.