Commits

Michael Blume committed ca62022

simplify this assertion -- no need to loop

  • Participants
  • Parent commits de4d8fc

Comments (0)

Files changed (1)

File pypy/module/micronumpy/test/test_numarray.py

 
         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