Commit 4279346a authored by Barry Warsaw's avatar Barry Warsaw

getnameinfo() appears to raise socket.error instead of

socket.gaierror. :( This allows test_socket to pass on a RH6.1-ish
Linux system.
parent 8edd5402
......@@ -102,7 +102,7 @@ except SystemError:
try:
# On some versions, this crashes the interpreter.
socket.getnameinfo(('x', 0, 0, 0), 0)
except socket.gaierror:
except socket.error:
pass
canfork = hasattr(os, 'fork')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment