Commit 37ca8c12 authored by Tim Peters's avatar Tim Peters

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

on Windows.
parent 93ceaea0
...@@ -45,7 +45,7 @@ def test_rude_shutdown(): ...@@ -45,7 +45,7 @@ def test_rude_shutdown():
def connector(): def connector():
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('', PORT)) s.connect(('localhost', PORT))
try: try:
ssl_sock = socket.ssl(s) ssl_sock = socket.ssl(s)
except socket.sslerror: except socket.sslerror:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment