connector(): You can't use an empty string as an argument to connect()

on Windows.
This commit is contained in:
Tim Peters 2003-07-01 14:49:32 +00:00
parent 93ceaea01f
commit 37ca8c12dc
1 changed files with 1 additions and 1 deletions

View 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: