diff options
author | Guido van Rossum <guido@python.org> | 2001-09-06 09:54:47 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-09-06 09:54:47 (GMT) |
commit | 7b219b4a926905a1357a70db4309ba52e0d7447d (patch) | |
tree | 75d4f0accc172ed46ca2b43663a1078d5bfda74e /Lib/test | |
parent | cb227c98509be01684671f78055956cd8ff61d81 (diff) | |
download | cpython-7b219b4a926905a1357a70db4309ba52e0d7447d.zip cpython-7b219b4a926905a1357a70db4309ba52e0d7447d.tar.gz cpython-7b219b4a926905a1357a70db4309ba52e0d7447d.tar.bz2 |
Skip instead of fail this test if the socket module has no ssl
support.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_socket_ssl.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py index 86d4fa3..334cbdf 100644 --- a/Lib/test/test_socket_ssl.py +++ b/Lib/test/test_socket_ssl.py @@ -8,6 +8,9 @@ import test_support 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') |