-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
With the new version 3.6.1, I also implemented to run the tests during the Debian package build. On s390x, which is a bIg endian machine, one test fails:
___________________________ TestTable.test_tableinfo ___________________________
self = <test_table.TestTable testMethod=test_tableinfo>
def test_tableinfo(self):
"""Test table info."""
c1 = makescacoldesc("coli", 0)
c2 = makescacoldesc("cold", 0.)
c3 = makescacoldesc("cols", "")
c4 = makescacoldesc("colb", True)
c5 = makescacoldesc("colc", 0. + 0j)
c6 = makearrcoldesc("colarr", 0.)
t = table("ttable.py_tmp.tab1", maketabdesc((c1, c2, c3, c4, c5,
c6)), ack=False)
[…]
> self.assertEqual(t.endianformat(), 'little')
E AssertionError: 'big' != 'little'
E - big
E + little
/build/reproducible-path/python-casacore-3.6.1/.pybuild/cpython3_3.13_casacore/build/tests/test_table.py:57: AssertionError
This would trivially to fix by using sys.byteorder instead of the string little. However, can you confirm that on big endian systems the table is really also big endian?
Metadata
Metadata
Assignees
Labels
No labels