[pypy-commit] pypy py3k: update to py3's hash(-inf)

pjenvey noreply at buildbot.pypy.org
Mon Mar 12 20:23:49 CET 2012


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r53336:3c23a2c4669e
Date: 2012-03-12 12:19 -0700
http://bitbucket.org/pypy/pypy/changeset/3c23a2c4669e/

Log:	update to py3's hash(-inf)

diff --git a/pypy/objspace/std/test/test_floatobject.py b/pypy/objspace/std/test/test_floatobject.py
--- a/pypy/objspace/std/test/test_floatobject.py
+++ b/pypy/objspace/std/test/test_floatobject.py
@@ -104,7 +104,7 @@
         # testing special overflow values
         inf = 1e200 * 1e200
         assert hash(inf) == 314159
-        assert hash(-inf) == -271828
+        assert hash(-inf) == -314159
         assert hash(inf/inf) == 0
 
     def test_int_float(self):


More information about the pypy-commit mailing list