From 61a54aa1983ec37c49d628ec5e39a6b2cb06a575 Mon Sep 17 00:00:00 2001 From: rgommers Date: Fri, 11 Mar 2011 16:12:20 +0800 Subject: 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. --- numpy/core/tests/test_umath_complex.py | 12 ++++++------ 1 file 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, -- cgit v1.2.1