1 # Test just the SSL support in the socket module, in a moderately bogus way.
5 # Optionally test SSL support. This currently requires the 'network' resource
6 # as given on the regrtest command line. If not available, nothing after this
7 # line will be executed.
8 test_support
.requires('network')
11 if not hasattr(socket
, "ssl"):
12 raise test_support
.TestSkipped("socket module has no ssl support")
22 print "didn't raise TypeError"
23 socket
.RAND_add("this is a random string", 75.0)
25 f
= urllib
.urlopen('https://sf.net')