mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
connector(): You can't use an empty string as an argument to connect()
on Windows.
This commit is contained in:
parent
93ceaea01f
commit
37ca8c12dc
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue