Author: Mike Blume <[email protected]>
Branch: 
Changeset: r53356:ca6202252099
Date: 2012-03-12 14:17 -0700
http://bitbucket.org/pypy/pypy/changeset/ca6202252099/

Log:    simplify this assertion -- no need to loop

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
@@ -631,8 +631,7 @@
 
         a = array(range(1, 6))
         b = a // a
-        for i in range(5):
-            assert b[i] == 1
+        assert (b == [1, 1, 1, 1, 1]).all()
 
         a = array(range(1, 6), dtype=bool)
         b = a // a
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to