[Numpy-svn] r8250 - trunk/numpy/lib/tests

numpy-svn@scip... numpy-svn@scip...
Sun Feb 21 16:05:45 CST 2010


Author: charris
Date: 2010-02-21 16:05:45 -0600 (Sun, 21 Feb 2010)
New Revision: 8250

Modified:
   trunk/numpy/lib/tests/test_type_check.py
Log:
BUG: Workarounds for isfinite/isinf invalid values.

Modified: trunk/numpy/lib/tests/test_type_check.py
===================================================================
--- trunk/numpy/lib/tests/test_type_check.py	2010-02-21 22:05:39 UTC (rev 8249)
+++ trunk/numpy/lib/tests/test_type_check.py	2010-02-21 22:05:45 UTC (rev 8250)
@@ -198,14 +198,14 @@
         assert_all(alltrue(res,axis=0))
 
     def test_posinf(self):
-        olderr = seterr(divide='ignore')
+        olderr = seterr(divide='ignore', invalid='ignore')
         try:
             assert_all(isfinite(array((1.,))/0.) == 0)
         finally:
             seterr(**olderr)
 
     def test_neginf(self):
-        olderr = seterr(divide='ignore')
+        olderr = seterr(divide='ignore', invalid='ignore')
         try:
             assert_all(isfinite(array((-1.,))/0.) == 0)
         finally:
@@ -243,28 +243,28 @@
         assert_all(alltrue(res,axis=0))
 
     def test_posinf(self):
-        olderr = seterr(divide='ignore')
+        olderr = seterr(divide='ignore', invalid='ignore')
         try:
             assert_all(isinf(array((1.,))/0.) == 1)
         finally:
             seterr(**olderr)
 
     def test_posinf_scalar(self):
-        olderr = seterr(divide='ignore')
+        olderr = seterr(divide='ignore', invalid='ignore')
         try:
             assert_all(isinf(array(1.,)/0.) == 1)
         finally:
             seterr(**olderr)
 
     def test_neginf(self):
-        olderr = seterr(divide='ignore')
+        olderr = seterr(divide='ignore', invalid='ignore')
         try:
             assert_all(isinf(array((-1.,))/0.) == 1)
         finally:
             seterr(**olderr)
 
     def test_neginf_scalar(self):
-        olderr = seterr(divide='ignore')
+        olderr = seterr(divide='ignore', invalid='ignore')
         try:
             assert_all(isinf(array(-1.)/0.) == 1)
         finally:



More information about the Numpy-svn mailing list