getnameinfo() appears to raise socket.error instead of

socket.gaierror. :( This allows test_socket to pass on a RH6.1-ish
Linux system.
This commit is contained in:
Barry Warsaw 2001-11-09 20:37:43 +00:00
parent 8edd5402f0
commit 4279346a9f
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ except SystemError:
try: try:
# On some versions, this crashes the interpreter. # On some versions, this crashes the interpreter.
socket.getnameinfo(('x', 0, 0, 0), 0) socket.getnameinfo(('x', 0, 0, 0), 0)
except socket.gaierror: except socket.error:
pass pass
canfork = hasattr(os, 'fork') canfork = hasattr(os, 'fork')