[pypy-commit] pypy matrixmath: add explicit test for arange float

mattip noreply at buildbot.pypy.org
Fri Nov 25 08:35:09 CET 2011


Author: mattip
Branch: matrixmath
Changeset: r49779:688917aae267
Date: 2011-11-25 09:28 +0200
http://bitbucket.org/pypy/pypy/changeset/688917aae267/

Log:	add explicit test for arange float

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
@@ -1057,3 +1057,7 @@
         assert a.dtype is dtype(int)
         a = arange(3, 7, 2)
         assert (a == [3, 5]).all()
+        a = arange(3,dtype=float)
+        assert (a == [0., 1., 2.]).all()
+        assert a.dtype is dtype(float)
+        


More information about the pypy-commit mailing list