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.

classification
Title: test_socket.py failures on ARM
Type: Stage:
Components: Tests Versions: Python 3.2, Python 3.3, Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: barry, r.david.murray
Priority: normal Keywords:

Created on 2011-10-05 21:51 by barry, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg144974 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2011-10-05 21:51
Initial results from warsaw-ubuntu-arm buildbot indicates two failures in test_socket.py

======================================================================
ERROR: test_create_connection_timeout (test.test_socket.NetworkConnectionNoServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/buildbot/buildarea/2.7.warsaw-ubuntu-arm/build/Lib/test/test_socket.py", line 1198, in test_create_connection_timeout
    socket.create_connection((HOST, 1234))
  File "/var/lib/buildbot/buildarea/2.7.warsaw-ubuntu-arm/build/Lib/socket.py", line 571, in create_connection
    raise err
error: [Errno 97] Address family not supported by protocol

======================================================================
FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/buildbot/buildarea/2.7.warsaw-ubuntu-arm/build/Lib/test/test_socket.py", line 1191, in test_create_connection
    self.assertEqual(cm.exception.errno, errno.ECONNREFUSED)
AssertionError: 97 != 111

----------------------------------------------------------------------

I'm still investigating, but wanted to file the bug now so there's an issue number to reference.
msg144979 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2011-10-06 00:34
This appears to be the problem:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/868812

I'm going to close this Python bug since it seems to be related to the Linux kernel on armel.  Editing the /etc/hosts file gets around the problem and lets the test pass.  I could imagine that the test should be able to deal with the unexpected exceptions though.
msg185842 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2013-04-02 16:09
For the record I'm seeing this on Gentoo with linux kernel 3.5.3.  Commenting out the localhost ipv6 entry lets the test pass, as indicated in the ubuntu bug report (which was subsequently closed with no action).
History
Date User Action Args
2022-04-11 14:57:22adminsetgithub: 57319
2013-04-02 16:09:46r.david.murraysetnosy: + r.david.murray
messages: + msg185842
2011-10-06 00:34:17barrysetstatus: open -> closed
resolution: not a bug
messages: + msg144979
2011-10-05 21:52:45barrysetversions: + Python 2.7, Python 3.2
2011-10-05 21:51:14barrycreate