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

numpy-svn@scip... numpy-svn@scip...
Wed Apr 23 04:59:21 CDT 2008


Author: stefan
Date: 2008-04-23 04:58:58 -0500 (Wed, 23 Apr 2008)
New Revision: 5070

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Add regression test for changeset #5065.


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2008-04-23 09:44:57 UTC (rev 5069)
+++ trunk/numpy/core/tests/test_regression.py	2008-04-23 09:58:58 UTC (rev 5070)
@@ -1012,6 +1012,9 @@
         x.fill(1)
         assert_equal(x, np.array([1], dtype=dtype))
 
+    def check_asfarray_none(self, level=rlevel):
+        """Test for changeset r5065"""
+        assert_array_equal(np.array([np.nan]), np.asfarray([None]))
 
 
 if __name__ == "__main__":



More information about the Numpy-svn mailing list