summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrgommers <ralf.gommers@googlemail.com>2011-03-11 16:12:20 +0800
committerrgommers <ralf.gommers@googlemail.com>2011-03-11 18:09:28 +0800
commit61a54aa1983ec37c49d628ec5e39a6b2cb06a575 (patch)
tree538c2e010ed94ba37202ad331b88364dd8a46a75
parent082903ecc89afe2512f7cab34b6d2b75b44a51c2 (diff)
downloadnumpy-61a54aa1983ec37c49d628ec5e39a6b2cb06a575.tar.gz
TST: make the knownfail for TestClog unconditional on Windows.
This keeps on coming up, and checking a few corner cases does not guarantee that other corner cases are also implemented according to the C99 standard. Was reported again by Christoph Gohlke for Python 2.7 and 3.2 on 64-bit Windows.
-rw-r--r--numpy/core/tests/test_umath_complex.py12
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,