A test of SSL support, using a roundabout method suggested by Guido.

However, this is only enabled with regrtest's --use=network switch.
This commit is contained in:
Barry Warsaw 2001-08-20 22:39:42 +00:00
parent 7fdfc3885c
commit d1ed15edb3

View file

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