]> granicus.if.org Git - python/commitdiff
connector(): You can't use an empty string as an argument to connect()
authorTim Peters <tim.peters@gmail.com>
Tue, 1 Jul 2003 14:49:32 +0000 (14:49 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 1 Jul 2003 14:49:32 +0000 (14:49 +0000)
on Windows.

Lib/test/test_socket_ssl.py

index 544cdd90f1f4343dd844d450d410eb9d6d339480..bcdb705b617546f86b58f8f028aacdde17ae5cbe 100644 (file)
@@ -45,7 +45,7 @@ def test_rude_shutdown():
 
     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: