[pypy-commit] pypy py3k: fix another test broken by aa1d34b5a927
antocuni
noreply at buildbot.pypy.org
Thu Apr 19 15:33:51 CEST 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r54531:a1935ceb3977
Date: 2012-04-19 10:40 +0200
http://bitbucket.org/pypy/pypy/changeset/a1935ceb3977/
Log: fix another test 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
@@ -332,8 +332,8 @@
q = Foo()
assert compute_hash(q) == compute_identity_hash(q)
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
return i*2
res = self.interpret(f, [42])
More information about the pypy-commit
mailing list