Opened 5 months ago

Closed 5 months ago

#30598 closed defect (fixed)

test_relay_cell fails on pypy 3.5

Reported by: teor Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Stem Version:
Severity: Normal Keywords: ci, travis
Cc: teor Actual Points:
Parent ID: #28170 Points:
Reviewer: Sponsor:

Description

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?

Child Tickets

Change History (1)

comment:1 Changed 5 months ago by atagar

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.