[pypy-commit] pypy default: make this test less boring

MichaelBlume noreply at buildbot.pypy.org
Mon Mar 12 22:49:31 CET 2012


Author: Mike Blume <mike at loggly.com>
Branch: 
Changeset: r53360:c07d96f608f3
Date: 2012-03-12 14:43 -0700
http://bitbucket.org/pypy/pypy/changeset/c07d96f608f3/

Log:	make this test less boring

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
@@ -672,8 +672,8 @@
     def test_floordiv_constant(self):
         from _numpypy import array
         a = array(range(5))
-        b = a // 5
-        assert (b == [0, 0, 0, 0, 0]).all()
+        b = a // 2
+        assert (b == [0, 0, 1, 1, 2]).all()
 
     def test_truediv(self):
         from operator import truediv


More information about the pypy-commit mailing list