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

numpy-svn@scip... numpy-svn@scip...
Sat Feb 20 12:11:07 CST 2010


Author: ptvirtan
Date: 2010-02-20 12:11:07 -0600 (Sat, 20 Feb 2010)
New Revision: 8157

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
3K: core: fix up some tests

Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2010-02-20 18:10:52 UTC (rev 8156)
+++ trunk/numpy/core/tests/test_regression.py	2010-02-20 18:11:07 UTC (rev 8157)
@@ -525,8 +525,8 @@
 
     def test_junk_in_string_fields_of_recarray(self, level=rlevel):
         """Ticket #483"""
-        r = np.array([['abc']], dtype=[('var1', '|S20')])
-        assert str(r['var1'][0][0]) == 'abc'
+        r = np.array([[asbytes('abc')]], dtype=[('var1', '|S20')])
+        assert asbytes(r['var1'][0][0]) == asbytes('abc')
 
     def test_take_output(self, level=rlevel):
         """Ensure that 'take' honours output parameter."""



More information about the Numpy-svn mailing list