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

Guido van Rossum gvanrossum@users.sourceforge.net
Thu, 06 Sep 2001 02:54:49 -0700


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

Modified Files:
	test_socket_ssl.py 
Log Message:
Skip instead of fail this test if the socket module has no ssl
support.


Index: test_socket_ssl.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_socket_ssl.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_socket_ssl.py	2001/08/20 22:39:42	1.1
--- test_socket_ssl.py	2001/09/06 09:54:47	1.2
***************
*** 9,12 ****
--- 9,15 ----
  
  import socket
+ if not hasattr(socket, "ssl"):
+     raise test_support.TestSkipped("socket module has no ssl support")
+ 
  import urllib