mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Make asyncio tests run when there's no SSL module (#5196)
This commit is contained in:
parent
cb064fc232
commit
21102f0dc2
1 changed files with 0 additions and 3 deletions
|
@ -5,7 +5,6 @@ import os
|
||||||
import pprint
|
import pprint
|
||||||
import select
|
import select
|
||||||
import socket
|
import socket
|
||||||
import ssl
|
|
||||||
import tempfile
|
import tempfile
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
|
@ -146,8 +145,6 @@ class TestSocketWrapper:
|
||||||
server_side=False,
|
server_side=False,
|
||||||
server_hostname=None):
|
server_hostname=None):
|
||||||
|
|
||||||
assert isinstance(ssl_context, ssl.SSLContext)
|
|
||||||
|
|
||||||
ssl_sock = ssl_context.wrap_socket(
|
ssl_sock = ssl_context.wrap_socket(
|
||||||
self.__sock, server_side=server_side,
|
self.__sock, server_side=server_side,
|
||||||
server_hostname=server_hostname,
|
server_hostname=server_hostname,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue