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

numpy-svn@scip... numpy-svn@scip...
Fri Oct 26 16:44:49 CDT 2007


Author: oliphant
Date: 2007-10-26 16:44:47 -0500 (Fri, 26 Oct 2007)
New Revision: 4315

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Add test for #600 fix.

Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2007-10-26 21:39:08 UTC (rev 4314)
+++ trunk/numpy/core/tests/test_regression.py	2007-10-26 21:44:47 UTC (rev 4315)
@@ -740,5 +740,13 @@
             x |= y
         self.failUnlessRaises(TypeError,rs)
 
+    def check_unicode_scalar(self, level=rlevel):
+        """Ticket #600"""
+        import cPickle
+        x = N.array(["DROND", "DROND1"], dtype="U6")
+        el = x[1]
+        new = cPickle.loads(cPickle.dumps(el))
+        assert_equal(new, el)
+
 if __name__ == "__main__":
     NumpyTest().run()



More information about the Numpy-svn mailing list