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 |
1 | bicatali 12/06/26 03:13:34 |
2 | |
3 | Added: mpmath-0.17-python-3.2.patch |
4 | Log: |
5 | Fixed tests for python-3.2, thanks Arfrever. Some cleaning. |
6 | |
7 | (Portage version: 2.1.11.1/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-python/mpmath/files/mpmath-0.17-python-3.2.patch |
11 | |
12 | 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 |
13 | 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 |
14 | |
15 | Index: mpmath-0.17-python-3.2.patch |
16 | =================================================================== |
17 | http://code.google.com/p/mpmath/issues/detail?id=203 |
18 | http://code.google.com/p/mpmath/source/detail?r=1238 |
19 | |
20 | --- mpmath/tests/test_basic_ops.py |
21 | +++ mpmath/tests/test_basic_ops.py |
22 | @@ -148,8 +148,8 @@ |
23 | assert hash(mp.mpq(5,1)) == hash(5) |
24 | assert hash(mp.mpq(1,2)) == hash(0.5) |
25 | if sys.version >= "3.2": |
26 | - assert hash(mpf(1))*2**2000 == hash(2**2000) |
27 | - assert hash(mpf(1))/2**2000 == hash(mpq(1,2**2000)) |
28 | + assert hash(mpf(1)*2**2000) == hash(2**2000) |
29 | + assert hash(mpf(1)/2**2000) == hash(mpq(1,2**2000)) |
30 | |
31 | # Advanced rounding test |
32 | def test_add_rounding(): |