[pypy-commit] pypy remove-numpypy: some more test fixes

bdkearns noreply at buildbot.pypy.org
Tue Oct 29 23:10:48 CET 2013


Author: Brian Kearns <bdkearns at gmail.com>
Branch: remove-numpypy
Changeset: r67713:eb3bd8f08c9c
Date: 2013-10-29 18:10 -0400
http://bitbucket.org/pypy/pypy/changeset/eb3bd8f08c9c/

Log:	some more test fixes

diff --git a/pypy/module/micronumpy/test/dummy_module.py b/pypy/module/micronumpy/test/dummy_module.py
--- a/pypy/module/micronumpy/test/dummy_module.py
+++ b/pypy/module/micronumpy/test/dummy_module.py
@@ -1,5 +1,7 @@
 from _numpypy.multiarray import *
 from _numpypy.umath import *
 
+True_ = dtype('bool').type(True)
+False_ = dtype('bool').type(False)
 newaxis = None
 ufunc = type(sin)
diff --git a/pypy/module/micronumpy/test/test_complex.py b/pypy/module/micronumpy/test/test_complex.py
--- a/pypy/module/micronumpy/test/test_complex.py
+++ b/pypy/module/micronumpy/test/test_complex.py
@@ -522,9 +522,9 @@
         assert str(exc.value) == \
             "could not broadcast input array from shape (2) into shape ()"
         a = array('abc')
-        assert str(a.real) == 'abc'
+        assert str(a.real) == str(a)
         # numpy imag for flexible types returns self
-        assert str(a.imag) == 'abc'
+        assert str(a.imag) == str(a)
         for t in 'complex64', 'complex128', 'clongdouble':
             complex_ = dtype(t).type
             O = complex(0, 0)


More information about the pypy-commit mailing list