From: Barry Warsaw <barry@python.org> Date: Mon, 20 Aug 2001 22:39:42 +0000 (+0000) Subject: A test of SSL support, using a roundabout method suggested by Guido. X-Git-Tag: v2.2a3~393 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1ed15edb35f61d3ce321b53f3372bc227d150c8;p=python A test of SSL support, using a roundabout method suggested by Guido. However, this is only enabled with regrtest's --use=network switch. --- diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py new file mode 100644 index 0000000000..86d4fa3547 --- /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')