[Python-checkins] python/dist/src/Lib/test test_socket_ssl.py,1.7,1.8

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Tue, 01 Jul 2003 06:44:31 -0700


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

Modified Files:
	test_socket_ssl.py 
Log Message:
Fix SF bug #763770, test_socket_ssl crash

Don't run any tests if there is 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.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** test_socket_ssl.py	30 Jun 2003 03:25:20 -0000	1.7
--- test_socket_ssl.py	1 Jul 2003 13:44:28 -0000	1.8
***************
*** 12,17 ****
  def test_basic():
      test_support.requires('network')
-     if not hasattr(socket, "ssl"):
-         raise test_support.TestSkipped("socket module has no ssl support")
  
      import urllib
--- 12,15 ----
***************
*** 62,65 ****
--- 60,65 ----
  
  def test_main():
+     if not hasattr(socket, "ssl"):
+         raise test_support.TestSkipped("socket module has no ssl support")
      test_rude_shutdown()
      test_basic()