python / cpython

The Python programming language
https://www.python.org
Other
63.37k stars 30.33k forks source link

test_socket.test_create_connection tests for wrong errno on Solaris #60461

Closed tpn closed 12 years ago

tpn commented 12 years ago
BPO 16257
Nosy @jcea, @tpn

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields: ```python assignee = None closed_at = created_at = labels = [] title = 'test_socket.test_create_connection tests for wrong errno on Solaris' updated_at = user = 'https://github.com/tpn' ``` bugs.python.org fields: ```python activity = actor = 'python-dev' assignee = 'none' closed = True closed_date = closer = 'trent' components = [] creation = creator = 'trent' dependencies = [] files = [] hgrepos = [] issue_num = 16257 keywords = [] message_count = 3.0 messages = ['173123', '173152', '173232'] nosy_count = 3.0 nosy_names = ['jcea', 'trent', 'python-dev'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue16257' versions = ['Python 3.2', 'Python 3.3', 'Python 3.4'] ```

tpn commented 12 years ago

\====================================================================== FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer) ----------------------------------------------------------------------

Traceback (most recent call last):
  File "/home/cpython/buildslave/3.x.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/test/test_socket.py", line 4112, in test_create_connection
    self.assertEqual(cm.exception.errno, errno.ECONNREFUSED)
AssertionError: 128 != 146
>>> errno.errorcode[128]
'ENETUNREACH'

Needs a Solaris-specific exception.

1762cc99-3127-4a62-9baf-30c3d0f51ef7 commented 12 years ago

New changeset b5fa9d8603b6 by Trent Nelson in branch '3.2': Issue bpo-16257: make test_create_connection() handle ENETUNREACH. http://hg.python.org/cpython/rev/b5fa9d8603b6

New changeset 6a938ce6315c by Trent Nelson in branch '3.3': Issue bpo-16257: make test_create_connection() handle ENETUNREACH. http://hg.python.org/cpython/rev/6a938ce6315c

New changeset 37a59bd23578 by Trent Nelson in branch 'default': Issue bpo-16257: make test_create_connection() handle ENETUNREACH. http://hg.python.org/cpython/rev/37a59bd23578

1762cc99-3127-4a62-9baf-30c3d0f51ef7 commented 12 years ago

New changeset 8599036d9140 by Trent Nelson in branch '2.7': Issue bpo-16257: make test_create_connection() handle ENETUNREACH. http://hg.python.org/cpython/rev/8599036d9140