[tor-bugs] #5918 [Stem]: test_launch_tor_options fails in test.integ.process

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Fri May 18 03:34:29 UTC 2012


#5918: test_launch_tor_options fails in test.integ.process
---------------------+------------------------------------------------------
 Reporter:  gsathya  |          Owner:  atagar
     Type:  defect   |         Status:  new   
 Priority:  normal   |      Milestone:        
Component:  Stem     |        Version:        
 Keywords:           |         Parent:        
   Points:           |   Actualpoints:        
---------------------+------------------------------------------------------
 {{{
 ======================================================================
                           test.integ.process
 ======================================================================

 test_launch_tor_options                                      [FAILURE]
 test_launch_tor_with_timeout                                 [SUCCESS]

 ======================================================================
 FAIL: test_launch_tor_options
 ----------------------------------------------------------------------
 Traceback:
   File "/Users/sathya/Documents/stem/test/integ/process.py", line 46, in
 test_launch_tor_options
     self.assertEquals("version=%s\nOK" % runner.get_tor_version(),
 str(version_response))
 AssertionError: 'version=0.2.3.11-alpha-dev\nOK' != 'version=0.2.3.11
 -alpha-dev\nOK'

 }}}

 setting a pdb.set_trace() above line #46,

 {{{
 >
 /Users/sathya/Documents/stem/test/integ/process.py(46)test_launch_tor_options()
 -> self.assertEquals("version=%s\nOK" % runner.get_tor_version(),
 str(version_response))
 (Pdb) p str(version_response)
 'version=0.2.3.11-alpha-dev (git-ef0bc7f8f26a917c)\nOK'
 (Pdb) p "version=%s\nOK" % runner.get_tor_version()
 'version=0.2.3.11-alpha-dev\nOK'
 }}}

 Looks like the git commit hash is messing up the assertion. But I wonder
 why the git commit hash didn't show up in the AssertionError.

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


More information about the tor-bugs mailing list