Skip instead of fail this test if the socket module has no ssl

support.
This commit is contained in:
Guido van Rossum 2001-09-06 09:54:47 +00:00
parent cb227c9850
commit 7b219b4a92

View file

@ -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')