[pypy-commit] pypy py3k: fix this test which was broken by aa1d34b5a927

antocuni noreply at buildbot.pypy.org
Thu Apr 19 15:33:50 CEST 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r54530:c9384faead26
Date: 2012-04-19 10:38 +0200
http://bitbucket.org/pypy/pypy/changeset/c9384faead26/

Log:	fix this test which was broken by aa1d34b5a927

diff --git a/pypy/rlib/test/test_objectmodel.py b/pypy/rlib/test/test_objectmodel.py
--- a/pypy/rlib/test/test_objectmodel.py
+++ b/pypy/rlib/test/test_objectmodel.py
@@ -160,8 +160,8 @@
 
 def test_compute_hash_float():
     from pypy.rlib.rfloat import INFINITY, NAN
-    assert compute_hash(INFINITY) == 314159
-    assert compute_hash(-INFINITY) == -271828
+    assert compute_hash(INFINITY) == HASH_INF
+    assert compute_hash(-INFINITY) == -HASH_INF
     assert compute_hash(NAN) == 0
 
 def test_compute_identity_hash():


More information about the pypy-commit mailing list