Commit eba63c42 authored by Antoine Pitrou's avatar Antoine Pitrou

Issue #13895: fix test_ssl hanging under Ubuntu

parent 6b671b25
...@@ -1078,7 +1078,7 @@ else: ...@@ -1078,7 +1078,7 @@ else:
chatty=chatty, chatty=chatty,
connectionchatty=False) connectionchatty=False)
with server: with server:
s = client_context.wrap_socket(socket.socket()) with client_context.wrap_socket(socket.socket()) as s:
s.connect((HOST, server.port)) s.connect((HOST, server.port))
for arg in [indata, bytearray(indata), memoryview(indata)]: for arg in [indata, bytearray(indata), memoryview(indata)]:
if connectionchatty: if connectionchatty:
......
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