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

numpy-svn@scip... numpy-svn@scip...
Sun Apr 1 15:12:29 CDT 2007


Author: cookedm
Date: 2007-04-01 15:12:27 -0500 (Sun, 01 Apr 2007)
New Revision: 3635

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


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2007-04-01 19:56:03 UTC (rev 3634)
+++ trunk/numpy/core/tests/test_regression.py	2007-04-01 20:12:27 UTC (rev 3635)
@@ -640,5 +640,10 @@
 
         self.failUnlessRaises(ValueError,mul)
 
+    def check_junk_in_string_fields_of_recarray(self, level=rlevel):
+        """Ticket #483"""
+        r = N.array([['abc']], dtype=[('var1', '|S20')])
+        assert str(r['var1'][0][0]) == 'abc'
+
 if __name__ == "__main__":
     NumpyTest().run()



More information about the Numpy-svn mailing list