Author: Antonio Cuni <[email protected]>
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])
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit