File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 12
12
from . import transports
13
13
from .log import logger
14
14
15
- SSLAgainErrors = (ssl .SSLWantReadError , ssl .SSLSyscallError )
15
+ if ssl is not None :
16
+ SSLAgainErrors = (ssl .SSLWantReadError , ssl .SSLSyscallError )
16
17
17
18
18
19
class SSLProtocolState (enum .Enum ):
Original file line number Diff line number Diff line change 3
3
import contextlib
4
4
import gc
5
5
import logging
6
- import os
7
6
import select
8
7
import socket
9
- import ssl
10
8
import tempfile
11
9
import threading
12
10
import time
13
11
import weakref
12
+ import unittest
13
+
14
+ try :
15
+ import ssl
16
+ except ImportError :
17
+ ssl = None
14
18
15
19
from test import support
16
20
from test .test_asyncio import utils as test_utils
@@ -54,6 +58,7 @@ def connection_lost(self, exc):
54
58
self .done .set_result (None )
55
59
56
60
61
+ @unittest .skipIf (ssl is None , 'No ssl module' )
57
62
class TestSSL (test_utils .TestCase ):
58
63
59
64
PAYLOAD_SIZE = 1024 * 100
You can’t perform that action at this time.
0 commit comments