[pypy-commit] pypy numpy-unify-methods: a failing test

mattip noreply at buildbot.pypy.org
Wed Feb 13 23:05:24 CET 2013


Author: mattip <matti.picus at gmail.com>
Branch: numpy-unify-methods
Changeset: r61218:1db349f824f6
Date: 2013-02-13 22:32 +0200
http://bitbucket.org/pypy/pypy/changeset/1db349f824f6/

Log:	a failing test

diff --git a/pypy/module/micronumpy/test/test_ufuncs.py b/pypy/module/micronumpy/test/test_ufuncs.py
--- a/pypy/module/micronumpy/test/test_ufuncs.py
+++ b/pypy/module/micronumpy/test/test_ufuncs.py
@@ -249,13 +249,16 @@
         assert (a == ref).all()
 
     def test_signbit(self):
-        from _numpypy import signbit
+        from _numpypy import signbit, add
 
         assert (signbit([0, 0.0, 1, 1.0, float('inf')]) ==
             [False, False, False, False, False]).all()
         assert (signbit([-0, -0.0, -1, -1.0, float('-inf')]) ==
             [False,  True,  True,  True,  True]).all()
 
+        a = add.identity
+        assert signbit(a) == False
+
         skip('sign of nan is non-determinant')
         assert (signbit([float('nan'), float('-nan'), -float('nan')]) ==
             [False, True, True]).all()    


More information about the pypy-commit mailing list