Commits

mattip committed b0a0486

fix copy for StringType

Comments (0)

Files changed (2)

pypy/module/micronumpy/interp_boxes.py

         return W_StringBox(arr, 0, arr.dtype)
             
     def convert_to(self, dtype):
-        from pypy.modules.micronumpy import types
+        from pypy.module.micronumpy import types
         assert isinstance(dtype.itemtype, types.StringType)
         return self        
 
         return W_UnicodeBox(arr, 0, arr.dtype)
 
     def convert_to(self, dtype):
-        from pypy.modules.micronumpy import types
+        from pypy.module.micronumpy import types
         assert isinstance(dtype.itemtype, types.UnicodeType)
         return self        
 

pypy/module/micronumpy/test/test_numarray.py

 
         a = array(['abc', 'def','xyz'], dtype='S3')
         b = a.copy()
-        assert (b == a).all()
+        assert b[0] == a[0]
 
     def test_iterator_init(self):
         from _numpypy import array