From 006effb64b99e2b2bb3e0af2353bba06c24920ce Mon Sep 17 00:00:00 2001 From: Hirotaka Wakabayashi Date: Mon, 17 Jun 2024 20:26:24 +0900 Subject: [PATCH] Casts the size of a MemoryRecordsBuilder object --- test/record/test_records.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/record/test_records.py b/test/record/test_records.py index 9f72234ae..5ed22d816 100644 --- a/test/record/test_records.py +++ b/test/record/test_records.py @@ -198,7 +198,7 @@ def test_memory_records_builder(magic, compression_type): # Size should remain the same after closing. No trailing bytes builder.close() assert builder.compression_rate() > 0 - expected_size = size_before_close * builder.compression_rate() + expected_size = int(size_before_close * builder.compression_rate()) assert builder.is_full() assert builder.size_in_bytes() == expected_size buffer = builder.buffer()