1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
From: Ole Streicher <ole@aip.de>
Date: Tue, 25 Mar 2025 12:36:58 +0100
Subject: Compare with correct byteorder for table test
On big endian machines, this should be "big", otherwise the test fails
on s390x.
---
tests/test_table.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/test_table.py b/tests/test_table.py
index 3d25cca..7419493 100644
--- a/tests/test_table.py
+++ b/tests/test_table.py
@@ -1,5 +1,6 @@
"""Tests for tables module."""
import unittest
+import sys
from casacore.tables import (makescacoldesc, makearrcoldesc, table,
maketabdesc, tableexists, tableiswritable,
tableinfo, tablefromascii, tabledelete,
@@ -54,7 +55,7 @@ class TestTable(unittest.TestCase):
self.assertEqual(t.info()['type'], 'test')
self.assertEqual(len(t), 0)
print(str(t))
- self.assertEqual(t.endianformat(), 'little')
+ self.assertEqual(t.endianformat(), sys.byteorder)
t.close()
tabledelete("ttable.py_tmp.tab1")
|