[tor-bugs] #14016 [Stem]: Failing unit tests on Python3.4
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Dec 23 17:48:24 UTC 2014
#14016: Failing unit tests on Python3.4
--------------------------------+------------------------
Reporter: Foxboron | Owner: atagar
Type: defect | Status: new
Priority: normal | Milestone:
Component: Stem | Version:
Keywords: python3, unittests | Actual Points:
Parent ID: | Points:
--------------------------------+------------------------
{{{
test_archived_paths [FAILURE]
....
======================================================================
FAIL: test_archived_paths
----
Traceback (most recent call last):
File
"/home/fox/Github/stem3/stem3/test/data/python3/test/unit/descriptor/reader.py",
line 368, in test_archived_paths
self.assertTrue(desc.get_archive_path() in expected_archive_paths)
AssertionError: False is not true
----
...
test_compare_flags [FAILURE]
....
test_votes_by_bandwidth_authorities [FAILURE]
======================================================================
FAIL: test_compare_flags
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/mock.py", line 1136, in patched
return func(*args, **keywargs)
File
"/home/fox/Github/stem3/stem3/test/data/python3/test/unit/tutorial_examples.py",
line 353, in test_compare_flags
self.assertEqual(COMPARE_FLAGS_OUTPUT, stdout_mock.getvalue())
AssertionError: "maat[41 chars]n't:
E2BB13AA2F6960CD93ABE5257A825687F3973C62\[365 chars]61\n" != "maat[41
chars]n't: DCAEC3D069DC39AAE43D13C8AF31B5645E05ED61\[365 chars]62\n"
Diff is 931 characters long. Set self.maxDiff to None to see it.
======================================================================
FAIL: test_votes_by_bandwidth_authorities
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/mock.py", line 1136, in patched
return func(*args, **keywargs)
File
"/home/fox/Github/stem3/stem3/test/data/python3/test/unit/tutorial_examples.py",
line 422, in test_votes_by_bandwidth_authorities
self.assertEqual(VOTES_BY_BANDWIDTH_AUTHORITIES_OUTPUT,
stdout_mock.getvalue())
AssertionError: "Getting gabelmoo's vote from http://212.112.245.1[477
chars]ed\n" != "Getting maatuska's vote from http://171.25.193.9:[477
chars]ed\n"
Diff is 808 characters long. Set self.maxDiff to None to see it.
----------------------------------------------------------------------
Ran 6 tests in 0.109s
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/14016>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list