diff options
author | Barry Warsaw <barry@python.org> | 2001-11-09 20:37:43 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-11-09 20:37:43 (GMT) |
commit | 4279346a9f23a0108714349489b9c763bbbd4e89 (patch) | |
tree | 299074fcc08dc756708ae8ab472146c17155984b | |
parent | 8edd5402f081a675093bd30f24034a527eb8471c (diff) | |
download | cpython-4279346a9f23a0108714349489b9c763bbbd4e89.zip cpython-4279346a9f23a0108714349489b9c763bbbd4e89.tar.gz cpython-4279346a9f23a0108714349489b9c763bbbd4e89.tar.bz2 |
getnameinfo() appears to raise socket.error instead of
socket.gaierror. :( This allows test_socket to pass on a RH6.1-ish
Linux system.
-rw-r--r-- | Lib/test/test_socket.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index e923d82..4269ef8 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -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') |