aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-10-02 13:38:21 +0100
committerJuan J. Martinez <jjm@usebox.net>2021-10-02 13:38:21 +0100
commit2a52cb0d99b62bd243627b0a827d3d289564005c (patch)
tree5d9b30a010625712f7320fdffa9d047dbf251185 /tests
parent54373248c7000cdad36ab4b9ae2feeb6fb4c70b9 (diff)
downloadubox-msx-lib-2a52cb0d99b62bd243627b0a827d3d289564005c.tar.gz
ubox-msx-lib-2a52cb0d99b62bd243627b0a827d3d289564005c.zip
Make the test portable
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_rom.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_rom.py b/tests/test_rom.py
index c378d23..657a161 100755
--- a/tests/test_rom.py
+++ b/tests/test_rom.py
@@ -31,7 +31,8 @@ class TestRom(unittest.TestCase):
self.assertEqual(len(self.data), self.ROM_SIZE)
def test_header_main_init_address(self):
- self.assertEqual(struct.unpack("H", self.data[2:4]), (self.main_init,))
+ self.assertEqual(struct.unpack(
+ "<H", self.data[2:4]), (self.main_init,))
if __name__ == '__main__':