summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_socket_ssl.py3
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')