From f0f97fed9e929c7886a3d3e50809ade48a7a08e6 Mon Sep 17 00:00:00 2001 From: rgommers Date: Fri, 11 Mar 2011 16:12:20 +0800 Subject: [PATCH] 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 619e6f0a3095..5cc5d9566a2d 100644 --- a/numpy/core/tests/test_umath_complex.py +++ b/numpy/core/tests/test_umath_complex.py @@ -11,7 +11,7 @@ # 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 @@ 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,