diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py index 544cdd90f1f..bcdb705b617 100644 --- a/Lib/test/test_socket_ssl.py +++ b/Lib/test/test_socket_ssl.py @@ -45,7 +45,7 @@ def listener(): def connector(): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - s.connect(('', PORT)) + s.connect(('localhost', PORT)) try: ssl_sock = socket.ssl(s) except socket.sslerror: