1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
From: Roland Mas <lolando@debian.org>
Date: Wed, 19 Mar 2025 15:50:29 +0100
Subject: Force endianness in testsuite
---
src/fabio/test/test_agi_bitfield.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/fabio/test/test_agi_bitfield.py b/src/fabio/test/test_agi_bitfield.py
index 0b48c88..a7330ee 100644
--- a/src/fabio/test/test_agi_bitfield.py
+++ b/src/fabio/test/test_agi_bitfield.py
@@ -67,7 +67,7 @@ class TestUtil(unittest.TestCase):
oft = io.BytesIO()
cf = agi_bitfield.compress_field(data, fs, oft)
- self.assertEqual(pack("h", 255) + pack("i", 40000), oft.getvalue())
+ self.assertEqual(pack("<h", 255) + pack("<i", 40000), oft.getvalue())
mask_ = agi_bitfield.MASK[fs]
dec = agi_bitfield.decode_field(cf)
|