[tor-bugs] #18659 [Stem]: test_connections_ipv6 test failure on OSX

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Mar 27 20:28:43 UTC 2016


#18659: test_connections_ipv6 test failure on OSX
-----------------------+------------------------
 Reporter:  Sebastian  |          Owner:  atagar
     Type:  defect     |         Status:  new
 Priority:  Medium     |      Milestone:
Component:  Stem       |        Version:
 Severity:  Normal     |     Resolution:
 Keywords:             |  Actual Points:
Parent ID:             |         Points:
 Reviewer:             |        Sponsor:
-----------------------+------------------------

Comment (by atagar):

 Narrowed this down. Frustratingly I think it might be a platform different
 in how python's socket module behaves. Mind running the following?

 {{{
 >>> import stem.util.proc
 >>>
 stem.util.proc._decode_proc_address_encoding('58080120020002000000BBAA26153B56:ADB5',
 True)
 ('2001:858:2:2:aabb:0:563b:1526', 44469)

 >>> import socket
 >>> import base64
 >>> socket.inet_ntop(socket.AF_INET6,
 base64.b16decode('2001085800020002AABB0000563B1526'))
 '2001:858:2:2:aabb:0:563b:1526'
 }}}

 Since the difference is between ':0:' and '::' we can probably just change
 the test to make them both acceptable.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18659#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list