Commits

mattip  committed 18f31c2

failing test - SliceArray has no astype

  • Participants
  • Parent commits 9aafa03

Comments (0)

Files changed (1)

File pypy/module/micronumpy/test/test_numarray.py

         assert _weakref.ref(a)
 
     def test_astype(self):
-        from _numpypy import array
+        from _numpypy import array, arange
         b = array(1).astype(float)
         assert b == 1
         assert b.dtype == float
         b = array([0, 1, 2], dtype=complex).astype(bool)
         assert (b == [False, True, True]).all()
         assert b.dtype == 'bool'
-
+        
+        a = arange(6, dtype='f4').reshape(2,3)
+        b = a.astype('i4')
 
     def test_base(self):
         from _numpypy import array