mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue