Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/mpmath/files: mpmath-0.17-python-3.2.patch
Date: Tue, 26 Jun 2012 03:14:13
Message-Id: 20120626031334.C072C2004C@flycatcher.gentoo.org
bicatali    12/06/26 03:13:34

  Added:                mpmath-0.17-python-3.2.patch
  Log:
  Fixed tests for python-3.2, thanks Arfrever. Some cleaning.
  
  (Portage version: 2.1.11.1/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-python/mpmath/files/mpmath-0.17-python-3.2.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mpmath/files/mpmath-0.17-python-3.2.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mpmath/files/mpmath-0.17-python-3.2.patch?rev=1.1&content-type=text/plain

Index: mpmath-0.17-python-3.2.patch
===================================================================
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():