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.

Author skrah
Recipients exarkun, giampaolo.rodola, loewis, mark.dickinson, pitrou, skrah
Date 2010-06-17.08:10:27
SpamBayes Score 3.909341e-05
Marked as misclassified No
Message-id <1276762230.04.0.601669597198.issue8857@psf.upfronthosting.co.za>
In-reply-to
Content
> 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
History
Date User Action Args
2010-06-17 08:10:30skrahsetrecipients: + skrah, loewis, exarkun, mark.dickinson, pitrou, giampaolo.rodola
2010-06-17 08:10:30skrahsetmessageid: <1276762230.04.0.601669597198.issue8857@psf.upfronthosting.co.za>
2010-06-17 08:10:28skrahlinkissue8857 messages
2010-06-17 08:10:27skrahcreate