[New-bugs-announce] [issue31910] test_socket.test_create_connection() failed with EADDRNOTAVAIL (err 99)

STINNER Victor report at bugs.python.org
Tue Oct 31 13:05:22 EDT 2017

New submission from STINNER Victor <victor.stinner at gmail.com>:

On my PR 4200 which is unrelated to networking, the following test failed once.

FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer)
Traceback (most recent call last):
  File "/home/travis/build/python/cpython/Lib/test/test_socket.py", line 4537, in test_create_connection
    self.assertIn(cm.exception.errno, expected_errnos)
AssertionError: 99 not found in [111, 101]

With error codes:

* 99: EADDRNOTAVAIL: Cannot assign requested address
* 111: ECONNREFUSED: Connection refused
* 101: ENETUNREACH: Network is unreachable

Maybe we shold include EADDRNOTAVAIL in the expected error codes?

components: Tests
messages: 305316
nosy: haypo, martin.panter, serhiy.storchaka
priority: normal
severity: normal
status: open
title: test_socket.test_create_connection() failed with EADDRNOTAVAIL (err 99)
versions: Python 3.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list