summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2012-06-26 03:13:34 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2012-06-26 03:13:34 +0000
commit0cb702ee22856374393a262205e3ae061cce309e (patch)
tree481a1578136497e3357171f458fafeaf01899237 /dev-python/mpmath/files
parentVersion bump (diff)
downloadhistorical-0cb702ee22856374393a262205e3ae061cce309e.tar.gz
historical-0cb702ee22856374393a262205e3ae061cce309e.tar.bz2
historical-0cb702ee22856374393a262205e3ae061cce309e.zip
Fixed tests for python-3.2, thanks Arfrever. Some cleaning.
Package-Manager: portage-2.1.11.1/cvs/Linux x86_64
Diffstat (limited to 'dev-python/mpmath/files')
-rw-r--r--dev-python/mpmath/files/mpmath-0.17-python-3.2.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-python/mpmath/files/mpmath-0.17-python-3.2.patch b/dev-python/mpmath/files/mpmath-0.17-python-3.2.patch
new file mode 100644
index 000000000000..00c74af9c7fe
--- /dev/null
+++ b/dev-python/mpmath/files/mpmath-0.17-python-3.2.patch
@@ -0,0 +1,16 @@
+http://code.google.com/p/mpmath/issues/detail?id=203
+http://code.google.com/p/mpmath/source/detail?r=1238
+
+--- mpmath/tests/test_basic_ops.py
++++ mpmath/tests/test_basic_ops.py
+@@ -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():