[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #16299 [Stem]: Stem unit test failure for test_compare_flags



#16299: Stem unit test failure for test_compare_flags
---------------------+------------------------
 Reporter:  atagar   |          Owner:  atagar
     Type:  defect   |         Status:  new
 Priority:  minor    |      Milestone:
Component:  Stem     |        Version:
 Keywords:  testing  |  Actual Points:
Parent ID:           |         Points:
---------------------+------------------------
 On irc toralf mentioned having the following unit test failure. It doesn't
 fail for me so maybe a missing mock...

 {{{
 ======================================================================
 FAIL: test_compare_flags
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python3.3/unittest/mock.py", line 1087, in patched
     return func(*args, **keywargs)
   File "/home/tfoerste/devel/stem/test/unit/tutorial_examples.py",
 line 280, in test_compare_flags
     self.assert_equal_unordered(COMPARE_FLAGS_OUTPUT,
 stdout_mock.getvalue())
   File "/home/tfoerste/devel/stem/test/unit/tutorial_examples.py",
 line 141, in assert_equal_unordered
     self.assertCountEqual(expected.splitlines(), actual.splitlines())
 AssertionError: Element counts were not equal:

 Diff is 1209 characters long. Set self.maxDiff to None to see it.

 ----------------------------------------------------------------------
 Ran 6 tests in 0.043s
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/16299>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs