Author: Brian Kearns <[email protected]>
Branch:
Changeset: r68446:55b7a58f38d0
Date: 2013-12-17 14:56 -0500
http://bitbucket.org/pypy/pypy/changeset/55b7a58f38d0/
Log: loosen this test also
diff --git a/pypy/module/micronumpy/test/test_scalar.py
b/pypy/module/micronumpy/test/test_scalar.py
--- a/pypy/module/micronumpy/test/test_scalar.py
+++ b/pypy/module/micronumpy/test/test_scalar.py
@@ -28,7 +28,7 @@
assert hex(np.complex64(11-12j)) == '0xb'
assert bin(np.int32(11)) == '0b1011'
exc = raises(TypeError, "bin(np.float32(11.6))")
- assert exc.value.message.find('object cannot be interpreted as an
index') != -1
+ assert "index" in exc.value.message
def test_pickle(self):
from numpypy import dtype, zeros
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit