From d1ed15edb35f61d3ce321b53f3372bc227d150c8 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 20 Aug 2001 22:39:42 +0000 Subject: [PATCH] A test of SSL support, using a roundabout method suggested by Guido. However, this is only enabled with regrtest's --use=network switch. --- Lib/test/test_socket_ssl.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Lib/test/test_socket_ssl.py diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py new file mode 100644 index 00000000000..86d4fa3547f --- /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')