[Python-checkins] CVS: python/dist/src/Lib/test test___all__.py,1.21,1.22

Tim Peters tim_one@users.sourceforge.net
Fri, 07 Dec 2001 13:35:45 -0800


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

Modified Files:
	test___all__.py 
Log Message:
SF patch 490393: test___all__ and Jython; from Finn Bock.
Don't even try to import _socket when running under Jython.


Index: test___all__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test___all__.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** test___all__.py	2001/11/02 21:45:39	1.21
--- test___all__.py	2001/12/07 21:35:42	1.22
***************
*** 36,42 ****
      verify(keys==all, "%s != %s" % (keys, all))
  
! # In case _socket fails to build, make this test fail more gracefully
! # than an AttributeError somewhere deep in CGIHTTPServer.
! import _socket
  
  check_all("BaseHTTPServer")
--- 36,43 ----
      verify(keys==all, "%s != %s" % (keys, all))
  
! if not sys.platform.startswith('java'):
!     # In case _socket fails to build, make this test fail more gracefully
!     # than an AttributeError somewhere deep in CGIHTTPServer.
!     import _socket
  
  check_all("BaseHTTPServer")