summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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):