diff options
author | Robert Kern <robert.kern@gmail.com> | 2008-04-12 03:12:09 +0000 |
---|---|---|
committer | Robert Kern <robert.kern@gmail.com> | 2008-04-12 03:12:09 +0000 |
commit | 1ea80052ca6a9af37c82221a275944753fbfe2be (patch) | |
tree | 76f9e8a7d540d913345ef9191c73bc4777e77387 /numpy/lib/tests/test_io.py | |
parent | a0726b5501d00aa4719d8172e75bc199fe62baf1 (diff) | |
download | numpy-1ea80052ca6a9af37c82221a275944753fbfe2be.tar.gz |
Compare against native-endian types, not endian-specific types.
Diffstat (limited to 'numpy/lib/tests/test_io.py')
-rw-r--r-- | numpy/lib/tests/test_io.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py index d0187fb58..cd92491ba 100644 --- a/numpy/lib/tests/test_io.py +++ b/numpy/lib/tests/test_io.py @@ -24,7 +24,7 @@ class Testsavetxt(NumpyTestCase): assert(c.readlines(), ['1\n', '2\n', '3\n', '4\n']) def test_record(self): - a = np.array([(1, 2), (3, 4)], dtype=[('x', '<i4'), ('y', '<i4')]) + a = np.array([(1, 2), (3, 4)], dtype=[('x', 'i4'), ('y', 'i4')]) c = StringIO.StringIO() np.savetxt(c, a, fmt='%d') c.seek(0) @@ -38,7 +38,7 @@ class Testloadtxt(NumpyTestCase): c.write('1 2\n3 4') c.seek(0) x = np.loadtxt(c, dtype=[('x', np.int32), ('y', np.int32)]) - a = np.array([(1, 2), (3, 4)], dtype=[('x', '<i4'), ('y', '<i4')]) + a = np.array([(1, 2), (3, 4)], dtype=[('x', 'i4'), ('y', 'i4')]) assert_array_equal(x, a) d = StringIO.StringIO() |