[pypy-commit] pypy numpypy-complex2: do not trust tranlating platform's power() for tests

mattip noreply at buildbot.pypy.org
Tue Oct 2 18:25:11 CEST 2012


Author: mattip <matti.picus at gmail.com>
Branch: numpypy-complex2
Changeset: r57743:5c72f033e952
Date: 2012-10-02 00:05 +0200
http://bitbucket.org/pypy/pypy/changeset/5c72f033e952/

Log:	do not trust tranlating platform's power() for tests

diff --git a/pypy/module/micronumpy/test/test_complex.py b/pypy/module/micronumpy/test/test_complex.py
--- a/pypy/module/micronumpy/test/test_complex.py
+++ b/pypy/module/micronumpy/test/test_complex.py
@@ -304,7 +304,7 @@
                      ], dtype=c)
             got_err = False
             for p in (3, -1, 10000, 2.3, -10000, 10+3j):
-                b = power(a, p)
+                b = self.c_pow(a, p)
                 for i in range(len(a)):
                     r = a[i]**p
                     msg = 'result of %r(%r)**%r got %r expected %r\n ' % \


More information about the pypy-commit mailing list