diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_ssl.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 36ed3aa..cf5abe2 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -24,12 +24,13 @@ try: import ssl except ImportError: skip_expected = True +else: + PROTOCOLS = [ + ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv3, + ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_TLSv1 + ] HOST = support.HOST -PROTOCOLS = [ - ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv3, - ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_TLSv1 -] data_file = lambda name: os.path.join(os.path.dirname(__file__), name) fsencode = lambda name: name.encode(sys.getfilesystemencoding(), "surrogateescape") |