[mpmath] r1238 committed - fix py3.2 hash tests

2 views
Skip to first unread message

mpm...@googlecode.com

unread,
Jun 30, 2011, 9:57:03 AM6/30/11
to mpmath-...@googlegroups.com
Revision: 1238
Author: fredrik.johansson
Date: Thu Jun 30 06:56:46 2011
Log: fix py3.2 hash tests
http://code.google.com/p/mpmath/source/detail?r=1238

Modified:
/trunk/mpmath/tests/test_basic_ops.py

=======================================
--- /trunk/mpmath/tests/test_basic_ops.py Sun Jan 16 13:41:24 2011
+++ /trunk/mpmath/tests/test_basic_ops.py Thu Jun 30 06:56:46 2011
@@ -148,8 +148,8 @@
assert hash(mp.mpq(5,1)) == hash(5)
assert hash(mp.mpq(1,2)) == hash(0.5)
if sys.version >= "3.2":
- assert hash(mpf(1))*2**2000 == hash(2**2000)
- assert hash(mpf(1))/2**2000 == hash(mpq(1,2**2000))
+ assert hash(mpf(1)*2**2000) == hash(2**2000)
+ assert hash(mpf(1)/2**2000) == hash(mpq(1,2**2000))

# Advanced rounding test
def test_add_rounding():

Reply all
Reply to author
Forward
0 new messages