mirror of https://github.com/python/cpython.git
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:
parent
7fdfc3885c
commit
d1ed15edb3
|
@ -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')
|
Loading…
Reference in New Issue