Author: Brian Kearns <[email protected]>
Branch:
Changeset: r69224:ad0c48672b08
Date: 2014-02-20 12:19 -0500
http://bitbucket.org/pypy/pypy/changeset/ad0c48672b08/
Log: fix test_tostring on 32bit
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
@@ -210,8 +210,8 @@
def test_tostring(self):
import numpy as np
- assert np.int64(123).tostring() == np.array(123, dtype=int).tostring()
- assert np.int64(123).tostring('C') == np.array(123,
dtype=int).tostring()
+ assert np.int64(123).tostring() == np.array(123, dtype='i8').tostring()
+ assert np.int64(123).tostring('C') == np.array(123,
dtype='i8').tostring()
assert np.float64(1.5).tostring() == np.array(1.5,
dtype=float).tostring()
exc = raises(TypeError, 'np.int64(123).tostring("Z")')
assert exc.value[0] == 'order not understood'
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit