Ticket #3371: test_tls.patch
| File test_tls.patch, 0.9 KB (added by exarkun, 2 years ago) |
|---|
-
twisted/internet/test/test_tls.py
18 18 try: 19 19 from OpenSSL.crypto import FILETYPE_PEM 20 20 except ImportError: 21 FILETYPE_PEM = None21 tls = FILETYPE_PEM = None 22 22 else: 23 23 from twisted.internet.ssl import PrivateCertificate, KeyPair 24 24 from twisted.internet.ssl import ClientContextFactory 25 try: 26 from twisted.protocols import tls 27 except ImportError: 28 tls = None 25 29 26 30 27 31 … … 32 36 if FILETYPE_PEM is None: 33 37 skip = "OpenSSL is unavailable" 34 38 35 if platform.isWindows() :39 if platform.isWindows() and tls is None: 36 40 msg = ( 37 41 "For some reason, these reactors don't deal with SSL " 38 42 "disconnection correctly on Windows. See #3371.")
