This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lys.nikolaou
Recipients lys.nikolaou
Date 2018-07-12.18:49:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531421390.98.0.56676864532.issue34105@psf.upfronthosting.co.za>
In-reply-to
Content
On my Mac OS X 10.13.6 system test_socket.test_host_resolution_bad_address fails with the following error:

======================================================================
FAIL: test_host_resolution_bad_address (test.test_socket.GeneralModuleTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/path/to/cpython/Lib/test/test_socket.py", line 897, in test_host_resolution_bad_address
    socket.gethostbyname(addr)
AssertionError: OSError not raised : 0.1.1.~1

----------------------------------------------------------------------
Ran 555 tests in 24.950s

FAILED (failures=1, skipped=141)
/path/to/cpython/Lib/test/test_socket.py:2345: RuntimeWarning: received malformed or improperly-truncated ancillary data
  result = sock.recvmsg(bufsize, *args)
/path/to/cpython/Lib/test/test_socket.py:2436: RuntimeWarning: received malformed or improperly-truncated ancillary data
  result = sock.recvmsg_into([buf], *args)
test test_socket failed

== Tests result: FAILURE ==

1 test failed:
    test_socket

Total duration: 25 sec 423 ms
Tests result: FAILURE

When I manually run socket.gethostbyname('0.1.1.~1'), it returns an IP address, no exception thrown.
History
Date User Action Args
2018-07-12 18:49:51lys.nikolaousetrecipients: + lys.nikolaou
2018-07-12 18:49:50lys.nikolaousetmessageid: <1531421390.98.0.56676864532.issue34105@psf.upfronthosting.co.za>
2018-07-12 18:49:50lys.nikolaoulinkissue34105 messages
2018-07-12 18:49:50lys.nikolaoucreate