Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_socket_ssl.py @ 19762:d09268d0ea52 legacy-trunk
Skip instead of fail this test if the socket module has no ssl
support.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 06 Sep 2001 09:54:47 +0000 |
| parents | 125785f1e12f |
| children | 97c75f981a9e |
line wrap: on
line diff
--- a/Lib/test/test_socket_ssl.py Thu Sep 06 08:54:16 2001 +0000 +++ b/Lib/test/test_socket_ssl.py Thu Sep 06 09:54:47 2001 +0000 @@ -8,6 +8,9 @@ test_support.requires('network') import socket +if not hasattr(socket, "ssl"): + raise test_support.TestSkipped("socket module has no ssl support") + import urllib urllib.urlopen('https://sf.net')
