[pypy-commit] pypy default: fix the test, thanks justin

fijal noreply at buildbot.pypy.org
Fri Jul 22 01:05:48 CEST 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r45853:9b2cf174334c
Date: 2011-07-22 01:05 +0200
http://bitbucket.org/pypy/pypy/changeset/9b2cf174334c/

Log:	fix the test, thanks justin

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
@@ -173,7 +173,9 @@
 
     def test_radd(self):
         from numpy import array
-        assert 3 + array(range(3)) == array([3, 4, 5])
+        r = 3 + array(range(3))\
+        for i in range(3):
+            assert r[i] == i + 3
 
     def test_add_list(self):
         from numpy import array


More information about the pypy-commit mailing list