Message321575
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. |
|
Date |
User |
Action |
Args |
2018-07-12 18:49:51 | lys.nikolaou | set | recipients:
+ lys.nikolaou |
2018-07-12 18:49:50 | lys.nikolaou | set | messageid: <1531421390.98.0.56676864532.issue34105@psf.upfronthosting.co.za> |
2018-07-12 18:49:50 | lys.nikolaou | link | issue34105 messages |
2018-07-12 18:49:50 | lys.nikolaou | create | |
|