[pypy-commit] pypy default: fix test

mattip noreply at buildbot.pypy.org
Thu Aug 13 06:22:45 CEST 2015


Author: mattip <matti.picus at gmail.com>
Branch: 
Changeset: r78955:7abd45f9e434
Date: 2015-08-13 07:05 +0300
http://bitbucket.org/pypy/pypy/changeset/7abd45f9e434/

Log:	fix test

diff --git a/pypy/module/micronumpy/test/test_dtypes.py b/pypy/module/micronumpy/test/test_dtypes.py
--- a/pypy/module/micronumpy/test/test_dtypes.py
+++ b/pypy/module/micronumpy/test/test_dtypes.py
@@ -350,8 +350,8 @@
         assert np.dtype(xyz).name == 'xyz'
         # another obscure API, used in numpy record.py
         # it seems numpy throws away the subclass type and parses the spec
-        a = np.dtype((xyz, [('x', int), ('y', float)]))
-        assert repr(a) == "dtype([('x', '<i8'), ('y', '<f8')])"
+        a = np.dtype((xyz, [('x', 'int32'), ('y', 'float32')]))
+        assert repr(a) == "dtype([('x', '<i4'), ('y', '<f4')])"
 
     def test_index(self):
         import numpy as np


More information about the pypy-commit mailing list