[pypy-commit] pypy numpy-concatenate: add failing test

mattip noreply at buildbot.pypy.org
Thu Dec 15 23:04:30 CET 2011


Author: mattip
Branch: numpy-concatenate
Changeset: r50595:ce05e49e8eda
Date: 2011-12-16 00:02 +0200
http://bitbucket.org/pypy/pypy/changeset/ce05e49e8eda/

Log:	add failing test

diff --git a/pypy/module/micronumpy/test/test_numarray.py b/pypy/module/micronumpy/test/test_numarray.py
--- a/pypy/module/micronumpy/test/test_numarray.py
+++ b/pypy/module/micronumpy/test/test_numarray.py
@@ -924,12 +924,13 @@
         assert a[0].tolist() == [17.1, 27.2]
 
     def test_concatenate(self):
-        from numpypy import array, concatenate
+        from numpypy import array, concatenate, dtype
         a1 = array([0,1,2])
         a2 = array([3,4,5])
         a = concatenate((a1, a2))
         assert len(a) == 6
         assert (a == [0,1,2,3,4,5]).all()
+        assert a.dtype is dtype(int)
         b1 = array([[1, 2], [3, 4]])
         b2 = array([[5, 6]])
         b = concatenate((b1, b2), axis=0)


More information about the pypy-commit mailing list