[Python-checkins] CVS: python/dist/src/Lib/test test_socket_ssl.py,NONE,1.1

Barry Warsaw bwarsaw@users.sourceforge.net
Mon, 20 Aug 2001 15:39:45 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv11791

Added Files:
	test_socket_ssl.py 
Log Message:
A test of SSL support, using a roundabout method suggested by Guido.
However, this is only enabled with regrtest's --use=network switch.


--- NEW FILE: test_socket_ssl.py ---
# 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')