socket.gethostbyname(socket.gethostname()) can fail when host name resolution is not set up correctly; do not fail test_socket if this is the case.

This commit is contained in:
Georg Brandl 2010-11-20 14:16:17 +00:00
parent cd6bb26fa7
commit 89197fe93c
2 changed files with 8 additions and 1 deletions

View file

@ -46,6 +46,9 @@ C-API
Tests
-----
- Do not fail test_socket when the IP address of the local hostname
cannot be looked up.
- Issue #8886: Use context managers throughout test_zipfile. Patch by
Eric Carstensen.