[pypy-svn] pypy cmath: (lac, arigo)

arigo commits-noreply at bitbucket.org
Mon Jan 17 16:09:10 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: cmath
Changeset: r40772:571e3a263784
Date: 2011-01-17 16:08 +0100
http://bitbucket.org/pypy/pypy/changeset/571e3a263784/

Log:	(lac, arigo)

	Finish acos().

diff --git a/pypy/module/cmath/test/test_cmath.py b/pypy/module/cmath/test/test_cmath.py
--- a/pypy/module/cmath/test/test_cmath.py
+++ b/pypy/module/cmath/test/test_cmath.py
@@ -162,8 +162,8 @@
             actual = complex(abs(actual.real), actual.imag)
             expected = complex(abs(expected.real), expected.imag)
         if 'ignore-imag-sign' in flags:
-            actual = complex(actual.real, abs(actual.imag))
-            expected = complex(expected.real, abs(expected.imag))
+            actual = (actual[0], abs(actual[1]))
+            expected = (expected[0], abs(expected[1]))
 
         # for the real part of the log function, we allow an
         # absolute error of up to 2e-15.


More information about the Pypy-commit mailing list