summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorrgommers <ralf.gommers@googlemail.com>2010-11-08 21:28:29 +0800
committerrgommers <ralf.gommers@googlemail.com>2010-11-08 21:48:37 +0800
commitc980bfe12cf624752d8355aeecbb485df5ec2ae0 (patch)
treec36808ef1e9bf42c55e5b4e182f5636da3be7f83 /numpy
parentcb8ebd26f05524725bb16037bf07af3be839b0e4 (diff)
downloadnumpy-c980bfe12cf624752d8355aeecbb485df5ec2ae0.tar.gz
TST: mark cexp tests as knownfail on OS X PPC.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/tests/test_umath_complex.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/core/tests/test_umath_complex.py b/numpy/core/tests/test_umath_complex.py
index dcc12e049..7f964e57e 100644
--- a/numpy/core/tests/test_umath_complex.py
+++ b/numpy/core/tests/test_umath_complex.py
@@ -1,4 +1,5 @@
import sys
+import platform
from numpy.testing import *
import numpy.core.umath as ncu
@@ -15,7 +16,9 @@ functions_seem_flaky = ((np.exp(complex(np.inf, 0)).imag != 0)
or (np.log(complex(np.NZERO, 0)).imag != np.pi))
# TODO: replace with a check on whether platform-provided C99 funcs are used
have_platform_functions = (sys.platform.startswith('win')
- or sys.platform.startswith('sunos'))
+ or sys.platform.startswith('sunos')
+ or (sys.platform == 'darwin' and 'powerpc' in
+ platform.processor()))
skip_complex_tests = have_platform_functions and functions_seem_flaky
def platform_skip(func):