summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/tests/test_umath_complex.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/numpy/core/tests/test_umath_complex.py b/numpy/core/tests/test_umath_complex.py
index 8365cb7dc..dcc12e049 100644
--- a/numpy/core/tests/test_umath_complex.py
+++ b/numpy/core/tests/test_umath_complex.py
@@ -10,9 +10,12 @@ import numpy as np
# At least on Windows the results of many complex functions are not conforming
# to the C99 standard. See ticket 1574.
-functions_seem_flaky = (np.exp(complex(np.inf, 0)).imag != 0)
+# Ditto for Solaris (ticket 1642).
+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 == 'win32')
+have_platform_functions = (sys.platform.startswith('win')
+ or sys.platform.startswith('sunos'))
skip_complex_tests = have_platform_functions and functions_seem_flaky
def platform_skip(func):