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

[tor-bugs] #28550 [Core Tor/Stem]: stem integ tests fail on python 2 with str/bytes error



#28550: stem integ tests fail on python 2 with str/bytes error
-------------------------------+--------------------
     Reporter:  teor           |      Owner:  atagar
         Type:  defect         |     Status:  new
     Priority:  Medium         |  Milestone:
    Component:  Core Tor/Stem  |    Version:
     Severity:  Normal         |   Keywords:
Actual Points:                 |  Parent ID:
       Points:                 |   Reviewer:
      Sponsor:                 |
-------------------------------+--------------------
 Using stem 1.7.0-dev, commit 670f403bb3f5df82cf7d16d938e4b37ddfd09917:
 https://travis-ci.org/teor2345/tor/jobs/457780454#L1747

 And python 2.7.5-5ubuntu3:
 https://travis-ci.org/teor2345/tor/jobs/457780454#L1535

 I see the following error:
 https://travis-ci.org/teor2345/tor/jobs/457780454#L3456

 {{{
 ======================================================================
 ERROR: test_from_str_multiple
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/home/travis/build/teor2345/tor/stem/test/unit/descriptor/descriptor.py",
 line 45, in test_from_str_multiple
     RelayDescriptor.content({'router': 'relay2 71.35.133.197 9001 0 0'}),
 TypeError: sequence item 1: expected str instance, bytes found
 ======================================================================
 ERROR: test_from_str_type_handling
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/home/travis/build/teor2345/tor/stem/test/unit/descriptor/descriptor.py",
 line 33, in test_from_str_type_handling
     desc = Descriptor.from_str('@type server-descriptor 1.0\n' +
 desc_text)
 TypeError: Can't convert 'bytes' object to str implicitly
 ----------------------------------------------------------------------
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28550>
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