From 0290bddf32fb27b830feb8f32e30c4f4c748876b Mon Sep 17 00:00:00 2001 From: Adam Thompson-Sharpe Date: Wed, 6 May 2026 12:15:43 -0400 Subject: [PATCH] Fix test for Apache Parquet files for file 5.47 The output for Parquet files changed in 5.47. This commit edits the test to accept both the old and new output. ```sh # Old $ file example.parquet example.parquet: Apache Parquet $ file --mime example.parquet example.parquet: application/octet-stream; charset=binary # New $ file example.parquet example.parquet: Apache Parquet file $ file --mime example.parquet example.parquet: application/vnd.apache.parquet; charset=binary ``` --- test/python_magic_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/python_magic_test.py b/test/python_magic_test.py index 5076044..3719b9f 100755 --- a/test/python_magic_test.py +++ b/test/python_magic_test.py @@ -89,8 +89,8 @@ class TestFile: (NO_SOFT, ["data"]), ], b"test.snappy.parquet": [ - (COMMON_MIME, ["application/octet-stream"]), - (COMMON_PLAIN, ["Apache Parquet", "Par archive data"]), + (COMMON_MIME, ["application/octet-stream", "application/vnd.apache.parquet"]), + (COMMON_PLAIN, ["Apache Parquet", "Apache Parquet file", "Par archive data"]), (NO_SOFT, ["data"]), ], b"test.json": [