[issue8857] socket.getaddrinfo needs tests
Stefan Krah
report at bugs.python.org
Thu Jun 17 10:10:30 CEST 2010
Stefan Krah <stefan-usenet at bytereef.org> added the comment:
> Btw, socket.has_ipv6 documentation should be more clear about the fact
> that having it == True doesn't necessarily mean IPv6 is actually
> supported.
Strange indeed. socket.has_ipv6 checks whether ENABLE_IPV6 was defined at
compile time. But why is that an attribute of a socket object? It can be
checked in sysconfig.
Unfortunately, the socktype test still fails on FreeBSD/Qemu:
======================================================================
FAIL: testGetaddrinfo (__main__.GeneralModuleTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Lib/test/test_socket.py", line 591, in testGetaddrinfo
self.assertEqual(socktype, socket.SOCK_STREAM)
AssertionError: 2 != 1
----------------------------------------------------------------------
Ran 101 tests in 11.504s
FAILED (failures=1)
Traceback (most recent call last):
File "Lib/test/test_socket.py", line 1463, in <module>
test_main()
File "Lib/test/test_socket.py", line 1459, in test_main
test_support.run_unittest(*tests)
File "/usr/home/stefan/svn/trunk/Lib/test/test_support.py", line 1055, in run_unittest
_run_suite(suite)
File "/usr/home/stefan/svn/trunk/Lib/test/test_support.py", line 1038, in _run_suite
raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
File "Lib/test/test_socket.py", line 591, in testGetaddrinfo
self.assertEqual(socktype, socket.SOCK_STREAM)
AssertionError: 2 != 1
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8857>
_______________________________________
More information about the Python-bugs-list
mailing list