Commit d1ed15ed authored by Barry Warsaw's avatar Barry Warsaw

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

However, this is only enabled with regrtest's --use=network switch.
parent 7fdfc388
# 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')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment