Skip to content

Commit a1fad43

Browse files
MysteryBlokHedahupp
authored andcommitted
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 ```
1 parent ff3e049 commit a1fad43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/python_magic_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ class TestFile:
8989
(NO_SOFT, ["data"]),
9090
],
9191
b"test.snappy.parquet": [
92-
(COMMON_MIME, ["application/octet-stream"]),
93-
(COMMON_PLAIN, ["Apache Parquet", "Par archive data"]),
92+
(COMMON_MIME, ["application/octet-stream", "application/vnd.apache.parquet"]),
93+
(COMMON_PLAIN, ["Apache Parquet", "Apache Parquet file", "Par archive data"]),
9494
(NO_SOFT, ["data"]),
9595
],
9696
b"test.json": [

0 commit comments

Comments
 (0)