[Numpy-svn] r5481 - branches/1.1.x/numpy/core/tests

numpy-svn@scip... numpy-svn@scip...
Sun Jul 20 18:35:50 CDT 2008


Author: charris
Date: 2008-07-20 18:35:47 -0500 (Sun, 20 Jul 2008)
New Revision: 5481

Modified:
   branches/1.1.x/numpy/core/tests/test_regression.py
Log:
make regression test work for reverted NaN fix.

Modified: branches/1.1.x/numpy/core/tests/test_regression.py
===================================================================
--- branches/1.1.x/numpy/core/tests/test_regression.py	2008-07-20 23:34:11 UTC (rev 5480)
+++ branches/1.1.x/numpy/core/tests/test_regression.py	2008-07-20 23:35:47 UTC (rev 5481)
@@ -1090,7 +1090,7 @@
         """Ticket 794."""
         C = np.array([-np.inf, -2+1j, 0, 2-1j, np.inf, np.nan])
         have = np.sign(C)
-        want = np.array([-1+0j, -1+0j, 0+0j, 1+0j, 1+0j, np.nan+0j])
+        want = np.array([-1+0j, -1+0j, 0+0j, 1+0j, 1+0j, 0+0j])
         assert_equal(have, want)
 
 



More information about the Numpy-svn mailing list