[tor-bugs] #30598 [Core Tor/Stem]: test_relay_cell fails on pypy 3.5

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri May 24 05:36:16 UTC 2019


#30598: test_relay_cell fails on pypy 3.5
-------------------------------+------------------------
     Reporter:  teor           |      Owner:  atagar
         Type:  defect         |     Status:  new
     Priority:  Medium         |  Milestone:
    Component:  Core Tor/Stem  |    Version:
     Severity:  Normal         |   Keywords:  ci, travis
Actual Points:                 |  Parent ID:  #28170
       Points:                 |   Reviewer:
      Sponsor:                 |
-------------------------------+------------------------
 {{{
 test_relay_cell                                              [FAILURE]
 test_unimplemented_cell_methods                        1 ms  [SUCCESS]
 test_unpack_for_new_link                               3 ms  [SUCCESS]
 test_versions_cell                                     3 ms  [SUCCESS]
 test_vpadding_cell                                     3 ms  [SUCCESS]
 ======================================================================
 ERROR: test_relay_cell
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/travis/build/teor2345/stem/test/unit/client/cell.py", line
 212, in test_relay_cell
     self.assertEqual(3257622417, RelayCell(5, 'RELAY_BEGIN_DIR', '',
 digest, 564346860).digest)
   File "/home/travis/build/teor2345/stem/stem/client/cell.py", line 363,
 in __init__
     raise ValueError('RELAY cell digest must be a hash, string, or int but
 was a %s' % type(digest).__name__)
 ValueError: RELAY cell digest must be a hash, string, or int but was a
 Hash
 ----------------------------------------------------------------------
 Ran 16 tests in 0.056s
 FAILED (errors=1)
 }}}
 https://travis-ci.org/teor2345/stem/jobs/536613181#L1526

 It looks like hash and Hash are different classes in pypy.
 Maybe they're the same in C python?

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


More information about the tor-bugs mailing list