/[gentoo-x86]/dev-python/mpmath/files/mpmath-0.17-python-3.2.patch
Gentoo

Contents of /dev-python/mpmath/files/mpmath-0.17-python-3.2.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Jun 26 03:13:34 2012 UTC (21 months, 3 weeks ago) by bicatali
Branch: MAIN
Fixed tests for python-3.2, thanks Arfrever. Some cleaning.

(Portage version: 2.1.11.1/cvs/Linux x86_64)

1 bicatali 1.1 http://code.google.com/p/mpmath/issues/detail?id=203
2     http://code.google.com/p/mpmath/source/detail?r=1238
3    
4     --- mpmath/tests/test_basic_ops.py
5     +++ mpmath/tests/test_basic_ops.py
6     @@ -148,8 +148,8 @@
7     assert hash(mp.mpq(5,1)) == hash(5)
8     assert hash(mp.mpq(1,2)) == hash(0.5)
9     if sys.version >= "3.2":
10     - assert hash(mpf(1))*2**2000 == hash(2**2000)
11     - assert hash(mpf(1))/2**2000 == hash(mpq(1,2**2000))
12     + assert hash(mpf(1)*2**2000) == hash(2**2000)
13     + assert hash(mpf(1)/2**2000) == hash(mpq(1,2**2000))
14    
15     # Advanced rounding test
16     def test_add_rounding():

  ViewVC Help
Powered by ViewVC 1.1.20