[Numpy-svn] r3887 - trunk/numpy/core/tests

numpy-svn@scip... numpy-svn@scip...
Tue Jul 17 08:46:35 CDT 2007


Author: stefan
Date: 2007-07-17 08:46:16 -0500 (Tue, 17 Jul 2007)
New Revision: 3887

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Regression test for ticket #396.


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2007-07-17 12:31:52 UTC (rev 3886)
+++ trunk/numpy/core/tests/test_regression.py	2007-07-17 13:46:16 UTC (rev 3887)
@@ -594,6 +594,11 @@
         v = N.vectorize(p)
         assert_valid_refcount(v)
 
+    def check_poly1d_nan_roots(self, level=rlevel):
+        """Ticket #396"""
+        p = N.poly1d([N.nan,N.nan,1], r=0)
+        self.failUnlessRaises(N.linalg.LinAlgError,getattr,p,"r")
+
     def check_refcount_vdot(self, level=rlevel):
         """Changeset #3443"""
         assert_valid_refcount(N.vdot)



More information about the Numpy-svn mailing list