[pypy-commit] pypy matrixmath: oops, did not see arange is applevel. Commit a test and remove a REVIEW item

fijal noreply at buildbot.pypy.org
Mon Nov 28 07:22:47 CET 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: matrixmath
Changeset: r49868:16a56eaf2ca0
Date: 2011-11-28 08:16 +0200
http://bitbucket.org/pypy/pypy/changeset/16a56eaf2ca0/

Log:	oops, did not see arange is applevel. Commit a test and remove a
	REVIEW item

diff --git a/pypy/module/micronumpy/REVIEW b/pypy/module/micronumpy/REVIEW
--- a/pypy/module/micronumpy/REVIEW
+++ b/pypy/module/micronumpy/REVIEW
@@ -1,5 +1,3 @@
-arange does not work for floats because they'll get automatically marked as ints
-it also does not test that it works correctly with floats (it does not)
 
 the flatiter should raise OperationError if object is not of BaseArray type
 
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
@@ -1120,4 +1120,5 @@
         a = arange(3,dtype=float)
         assert (a == [0., 1., 2.]).all()
         assert a.dtype is dtype(float)
-        
+        a = arange(0, 0.8, 0.1)
+        assert len(a) == 8


More information about the pypy-commit mailing list