Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions trx/tests/test_memmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,10 +523,12 @@ def test_load_zip_with_local_header_extra_field():
local_info = []
extra = b"\x00\x00\x04\x00TEST" # 8-byte extra field

# TRX stores arrays little-endian on disk; serialize the fixture
# explicitly so it is valid on big-endian hosts too (issue #113).
for name, data in [
("header.json", json.dumps(header).encode()),
("positions.3.float32", positions.tobytes()),
("offsets.uint64", offsets.tobytes()),
("positions.3.float32", positions.astype("<f4").tobytes()),
("offsets.uint64", offsets.astype("<u8").tobytes()),
]:
offset = f.tell()
fname = name.encode()
Expand Down