[Numpy-svn] r8660 - branches/1.5.x/numpy/core/tests

numpy-svn@scip... numpy-svn@scip...
Sun Aug 22 00:25:46 CDT 2010


Author: rgommers
Date: 2010-08-22 00:25:46 -0500 (Sun, 22 Aug 2010)
New Revision: 8660

Modified:
   branches/1.5.x/numpy/core/tests/test_umath_complex.py
Log:
TST: Mark Clog test as knownfail on Windows.

On 64-bit Windows builds the platform_skip decorator didn't take effect because
"(np.exp(complex(np.inf, 0)).imag != 0)" correctly evaluates to False. But the
test was failing anyway.

Modified: branches/1.5.x/numpy/core/tests/test_umath_complex.py
===================================================================
--- branches/1.5.x/numpy/core/tests/test_umath_complex.py	2010-08-22 05:25:27 UTC (rev 8659)
+++ branches/1.5.x/numpy/core/tests/test_umath_complex.py	2010-08-22 05:25:46 UTC (rev 8660)
@@ -144,7 +144,12 @@
         for i in range(len(x)):
             assert_almost_equal(y[i], y_r[i])
 
-    @platform_skip
+    #@platform_skip
+    # Clog tests have been failing for a long time on Windows, so always skip
+    # on that platform. In 1.5.x the platform_skip decorator is Windows-only
+    # anyway.
+    @dec.knownfailureif(sys.platform == 'win32',
+                        "clog(- inf + i inf) fails on Windows.")
     def test_special_values(self):
         xl = []
         yl = []



More information about the Numpy-svn mailing list