Skip to content

Commit

Permalink
Merge pull request #3873 from silx-kit/t20100-patch-1
Browse files Browse the repository at this point in the history
silx.io: Fixed small/big endian support in test
  • Loading branch information
payno authored Jun 20, 2023
2 parents b2c1068 + 9695b63 commit d3bf376
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/silx/io/test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,11 @@ def testHdf5(self):
self.assertIn("+foo", lines)
self.assertIn("\t+bar", lines)

match = r'\t\t<HDF5 dataset "tmp": shape \(3,\), type "<i[48]">'
match = r'\t\t<HDF5 dataset "tmp": shape \(3,\), type "[<>]i[48]">'
self.assertMatchAnyStringInList(match, lines)
match = r'\t\t<HDF5 dataset "spam": shape \(2, 2\), type "<i[48]">'
match = r'\t\t<HDF5 dataset "spam": shape \(2, 2\), type "[<>]i[48]">'
self.assertMatchAnyStringInList(match, lines)
match = r'\t<HDF5 dataset "data": shape \(1,\), type "<f[48]">'
match = r'\t<HDF5 dataset "data": shape \(1,\), type "[<>]f[48]">'
self.assertMatchAnyStringInList(match, lines)

os.unlink(self.h5_fname)
Expand Down

0 comments on commit d3bf376

Please sign in to comment.