[pypy-commit] pypy default: add a failing test, so we dont forget
fijal
noreply at buildbot.pypy.org
Tue May 29 18:51:07 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r55205:fa5c10146857
Date: 2012-05-29 18:50 +0200
http://bitbucket.org/pypy/pypy/changeset/fa5c10146857/
Log: add a failing test, so we dont forget
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
@@ -1530,6 +1530,12 @@
# test virtual
assert ((x + x).swapaxes(0,1) == array([[[ 2, 4, 6], [14, 16, 18]],
[[ 8, 10, 12], [20, 22, 24]]])).all()
+
+ def test_filter_bug(self):
+ from numpypy import array
+ a = array([1.0,-1.0])
+ a[a<0] = -a[a<0]
+ assert (a == [1, 1]).all()
class AppTestMultiDim(BaseNumpyAppTest):
def test_init(self):
More information about the pypy-commit
mailing list