[tor-bugs] #14016 [Stem]: Failing unit tests on Python3.4
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed Dec 24 00:19:53 UTC 2014
#14016: Failing unit tests on Python3.4
--------------------------+--------------------------------
Reporter: Foxboron | Owner: atagar
Type: defect | Status: new
Priority: normal | Milestone:
Component: Stem | Version:
Resolution: | Keywords: python3, unittests
Actual Points: | Parent ID:
Points: |
--------------------------+--------------------------------
Comment (by Foxboron):
test_votes_by_bandwidth_authorities can be fixed by using an ordered dict.
I suspect the last failing test suffers from the same, tho i find it wierd
it does work on python2 if thats the case.
{{{
@@ -279,7 +283,8 @@ class TestTutorialExamples(unittest.TestCase):
# Query all authority votes asynchronously.
downloader = remote.DescriptorDownloader(document_handler =
DocumentHandler.DOCUMENT)
- queries = {}
+ from collections import OrderedDict
+ queries = OrderedDict()
for name, authority in remote.get_authorities().items():
if authority.v3ident is None:
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/14016#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list