Skip to content

Commit 6f8d08a

Browse files
committed
add byteorder param to work in py-3.9 , 3.10
1 parent 60d0d7b commit 6f8d08a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/asyncio/test_async_appendable_object_writer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,13 +455,13 @@ async def test_append_sends_data_in_chunks(mock_write_object_stream, mock_client
455455
assert first_call[0][0].write_offset == 100
456456
assert len(first_call[0][0].checksummed_data.content) == _MAX_CHUNK_SIZE_BYTES
457457
assert first_call[0][0].checksummed_data.crc32c == int.from_bytes(
458-
Checksum(data[:_MAX_CHUNK_SIZE_BYTES]).digest()
458+
Checksum(data[:_MAX_CHUNK_SIZE_BYTES]).digest(), byteorder="big"
459459
)
460460
# Second chunk
461461
assert second_call[0][0].write_offset == 100 + _MAX_CHUNK_SIZE_BYTES
462462
assert len(second_call[0][0].checksummed_data.content) == 1
463463
assert second_call[0][0].checksummed_data.crc32c == int.from_bytes(
464-
Checksum(data[_MAX_CHUNK_SIZE_BYTES:]).digest()
464+
Checksum(data[_MAX_CHUNK_SIZE_BYTES:]).digest(), byteorder="big"
465465
)
466466

467467
assert writer.offset == 100 + len(data)

0 commit comments

Comments
 (0)