Closed
Description
I run tests on several architectures. One of them is x86.
Under Python2 "test_legacy_correct_metadata_response" fails with:
========================================== FAILURES ===========================================
__________________________ test_legacy_correct_metadata_response[0] ___________________________
magic = 0
@pytest.mark.parametrize("magic", [0, 1])
def test_legacy_correct_metadata_response(magic):
builder = LegacyRecordBatchBuilder(
magic=magic, compression_type=0, batch_size=1024 * 1024)
meta = builder.append(
0, timestamp=9999999, key=b"test", value=b"Super")
assert meta.offset == 0
assert meta.timestamp == (9999999 if magic else -1)
assert meta.crc == (-2095076219 if magic else 278251978) & 0xffffffff
> assert repr(meta) == (
"LegacyRecordMetadata(offset=0, crc={}, size={}, "
"timestamp={})".format(meta.crc, meta.size, meta.timestamp)
)
E AssertionError: assert 'LegacyRecord...timestamp=-1)' == 'LegacyRecordM...timestamp=-1)'
E Skipping 34 identical leading characters in diff, use -v to show
E - =278251978L, size=35, timestamp=-1)
E ? -
E + =278251978, size=35, timestamp=-1)
Metadata
Metadata
Assignees
Labels
No labels