| 1234567891011121314151617181920212223242526272829303132333435 |
- Subject: Fix test for Apache Parquet files for file 5.47
- Origin: upstream, commit 0.4.27-49-ga1fad43 <https://github.com/ahupp/python-magic/commit/0.4.27-49-ga1fad43>
- Author: Adam Thompson-Sharpe <adamthompsonsharpe@gmail.com>
- Date: Wed May 6 12:15:43 2026 -0400
- 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
- ```
- --- a/test/python_magic_test.py
- +++ b/test/python_magic_test.py
- @@ -89,8 +89,8 @@
- (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": [
|