diff options
-rw-r--r-- | numpy/core/tests/test_umath_complex.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/numpy/core/tests/test_umath_complex.py b/numpy/core/tests/test_umath_complex.py index 619e6f0a3..5cc5d9566 100644 --- a/numpy/core/tests/test_umath_complex.py +++ b/numpy/core/tests/test_umath_complex.py @@ -11,7 +11,7 @@ import numpy as np # At least on Windows the results of many complex functions are not conforming # to the C99 standard. See ticket 1574. -# Ditto for Solaris (ticket 1642). +# Ditto for Solaris (ticket 1642) and OS X on PowerPC. olderr = np.seterr(divide='ignore') try: functions_seem_flaky = ((np.exp(complex(np.inf, 0)).imag != 0) @@ -19,11 +19,11 @@ try: finally: np.seterr(**olderr) # 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 == 'darwin' and 'powerpc' in - platform.processor())) -skip_complex_tests = have_platform_functions and functions_seem_flaky +have_platform_functions = (sys.platform.startswith('sunos') or + (sys.platform == 'darwin' and 'powerpc' in + platform.processor())) +skip_complex_tests = (sys.platform.startswith('win') or + (have_platform_functions and functions_seem_flaky)) def platform_skip(func): return dec.skipif(skip_complex_tests, |