[pypy-commit] pypy default: a failing test for integer pow

alex_gaynor noreply at buildbot.pypy.org
Mon Nov 28 14:18:16 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r49897:3869e30bbf49
Date: 2011-11-28 08:18 -0500
http://bitbucket.org/pypy/pypy/changeset/3869e30bbf49/

Log:	a failing test for integer pow

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
@@ -464,9 +464,11 @@
         a = array(range(5), float)
         b = a ** a
         for i in range(5):
-            print b[i], i ** i
             assert b[i] == i ** i
 
+        a = array(range(5))
+        assert (a ** 2 == a * a).all()
+
     def test_pow_other(self):
         from numpypy import array
         a = array(range(5), float)


More information about the pypy-commit mailing list