smarie / python-pytest-harvest

Store data created during your `pytest` tests execution, and retrieve it at the end of the session, e.g. for applicative benchmarking purposes.
https://smarie.github.io/python-pytest-harvest/
BSD 3-Clause "New" or "Revised" License
61 stars 8 forks source link

test_results_bag_basic() fails on i586 #31

Closed jayvdb closed 4 years ago

jayvdb commented 4 years ago
[   78s] 
[   78s]     def test_results_bag_basic():
[   78s]         r = ResultsBag()
[   78s]     
[   78s]         r.foo = 1
[   78s]         assert r['foo'] == 1
[   78s]         assert r == {'foo': 1}
[   78s]         assert dict(r) == {'foo': 1}
[   78s]         assert str(r) == "ResultsBag:\n{'foo': 1}"
[   78s]     
[   78s]         del r.foo
[   78s]         assert 'foo' not in r
[   78s]         assert r == {}
[   78s]         assert dict(r) == {}
[   78s]         assert str(r) == "ResultsBag:\n{}"
[   78s]     
[   78s] >       assert hash(r) == id(r)
[   78s] E       assert -1367038660 == 2927928636L
[   78s] E         --1367038660
[   78s] E         +2927928636L
[   78s] 
[   78s] pytest_harvest/tests/test_results_bag_basic.py:19: AssertionError
smarie commented 4 years ago

This looks similar to https://github.com/smarie/python-pytest-harvest/pull/27 and / or a consequence of it. @keszybz what do you think ?

jayvdb commented 4 years ago

I upgraded and the problem was solved. Thanks for the pointer in the right direction and sorry for the noise.

smarie commented 4 years ago

Oh great, thanks !