File: 0005-Force-endianness-in-testsuite.patch

package info (click to toggle)
python-fabio 2024.9.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,844 kB
  • sloc: python: 21,160; ansic: 1,126; lisp: 450; makefile: 253; sh: 244
file content (21 lines) | stat: -rw-r--r-- 795 bytes parent folder | download | duplicates (2)
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)