diff --git a/tests/test_integration_manifest.py b/tests/test_integration_manifest.py index 801cf734a8..8191209ae6 100644 --- a/tests/test_integration_manifest.py +++ b/tests/test_integration_manifest.py @@ -101,6 +101,10 @@ def test_write_sample_manifest(table_test_all_types: Table) -> None: ) wrapped_entry_v2 = ManifestEntry(*entry.record_fields()) wrapped_entry_v2.data_file = wrapped_data_file_v2_debug + wrapped_entry_v2_dict = todict(wrapped_entry_v2) + # This one should not be written + del wrapped_entry_v2_dict['data_file']['spec_id'] + with TemporaryDirectory() as tmpdir: tmp_avro_file = tmpdir + "/test_write_manifest.avro" output = PyArrowFileIO().new_output(tmp_avro_file) @@ -119,4 +123,4 @@ def test_write_sample_manifest(table_test_all_types: Table) -> None: it = iter(r) fa_entry = next(it) - assert fa_entry == todict(wrapped_entry_v2) + assert fa_entry == wrapped_entry_v2_dict