summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2010-10-20 21:24:28 +0200
committerPauli Virtanen <pav@iki.fi>2010-10-20 21:31:48 +0200
commit05be85cca392b65a82cdd12d423b2b26fb5c83e8 (patch)
treed4cac5beb7b2b95cc045671ad18bbe394a7c6703 /numpy
parent3747ab5ec181368dcfa57a5436e40e0ec1927641 (diff)
downloadnumpy-05be85cca392b65a82cdd12d423b2b26fb5c83e8.tar.gz
TST: core: disable C99 complex tests also on Solaris if it seems that the platform functions are flaky
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):