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

numpy-svn at scipy.org numpy-svn at scipy.org
Thu Sep 7 19:11:51 CDT 2006


Author: stefan
Date: 2006-09-07 19:11:23 -0500 (Thu, 07 Sep 2006)
New Revision: 3135

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Tests for tickets #246 and #251.


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2006-09-07 23:52:34 UTC (rev 3134)
+++ trunk/numpy/core/tests/test_regression.py	2006-09-08 00:11:23 UTC (rev 3135)
@@ -348,11 +348,21 @@
         assert_equal(N.array([[],[],[]],dtype=object).shape, (3,0))
         assert_equal(N.array([[3,4],[5,6],None],dtype=object).shape, (3,))
         
+    def check_character_array_strip(self,level=rlevel):
+        """Ticket #246"""
+        x = N.char.array(("x","x ","x  "))
+        for c in x: assert_equal(c,"x")
+
     def check_lexsort(self,level=rlevel):
         """Lexsort memory error"""
         v = N.array([1,2,3,4,5,6,7,8,9,10])
         assert_equal(N.lexsort(v),0)
         
+    def check_pickle_dtype(self,level=rlevel):
+        """Ticket #251"""
+        import pickle
+        pickle.dumps(N.float)
+        
     def check_masked_array_multiply(self,level=rlevel):
         """Ticket #254"""
         a = N.ma.zeros((4,1))



More information about the Numpy-svn mailing list