[pypy-commit] pypy missing-ndarray-attributes: cannot stop in pdb on failing assert, print instead
mattip
noreply at buildbot.pypy.org
Mon Feb 4 01:10:08 CET 2013
Author: Matti Picus <matti.picus at gmail.com>
Branch: missing-ndarray-attributes
Changeset: r60850:1c94dc8e7e8d
Date: 2013-02-03 23:12 +0200
http://bitbucket.org/pypy/pypy/changeset/1c94dc8e7e8d/
Log: cannot stop in pdb on failing assert, print instead
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
@@ -2378,7 +2378,8 @@
a = array([6, 4, -1, 3, 8, 3, 256+20, 100, 101], dtype=dtype)
c = a.copy()
res = a.argsort()
- assert (res == [2, 3, 5, 1, 0, 4, 7, 8, 6]).all()
+ assert (res == [2, 3, 5, 1, 0, 4, 7, 8, 6]).all(), \
+ 'a,res,dtype %r,%r,%r' % (a,res,dtype)
assert (a == c).all() # not modified
a = arange(100)
assert (a.argsort() == a).all()
More information about the pypy-commit
mailing list