summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_socket_ssl.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py
new file mode 100644
index 0000000..86d4fa3
--- /dev/null
+++ b/Lib/test/test_socket_ssl.py
@@ -0,0 +1,13 @@
+# Test just the SSL support in the socket module, in a moderately bogus way.
+
+import test_support
+
+# Optionally test SSL support. This currently requires the 'network' resource
+# as given on the regrtest command line. If not available, nothing after this
+# line will be executed.
+test_support.requires('network')
+
+import socket
+import urllib
+
+urllib.urlopen('https://sf.net')