[Python-checkins] CVS: python/dist/src/Lib/test test_socket.py,1.21,1.22
Barry Warsaw
bwarsaw@users.sourceforge.net
Fri, 09 Nov 2001 12:37:45 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv12317
Modified Files:
test_socket.py
Log Message:
getnameinfo() appears to raise socket.error instead of
socket.gaierror. :( This allows test_socket to pass on a RH6.1-ish
Linux system.
Index: test_socket.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_socket.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** test_socket.py 2001/11/02 23:34:52 1.21
--- test_socket.py 2001/11/09 20:37:43 1.22
***************
*** 103,107 ****
# On some versions, this crashes the interpreter.
socket.getnameinfo(('x', 0, 0, 0), 0)
! except socket.gaierror:
pass
--- 103,107 ----
# On some versions, this crashes the interpreter.
socket.getnameinfo(('x', 0, 0, 0), 0)
! except socket.error:
pass