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:
parent
8edd5402f0
commit
4279346a9f
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue