summaryrefslogtreecommitdiff
path: root/dev-python/python-magic/files
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-07-20 03:04:47 -0500
committerroot <root@alpha.trunkmasters.com>2026-07-20 03:04:47 -0500
commit72e61757ad18b354c7e086543f02375857946e03 (patch)
treed2abee5f70f8543cd23b06c84ec78283aa83b49e /dev-python/python-magic/files
parent2b878031702361370da8f648ac080b3fe38f34d3 (diff)
downloadbaldeagleos-repo-72e61757ad18b354c7e086543f02375857946e03.tar.gz
baldeagleos-repo-72e61757ad18b354c7e086543f02375857946e03.tar.xz
baldeagleos-repo-72e61757ad18b354c7e086543f02375857946e03.zip
Adding metadata
Diffstat (limited to 'dev-python/python-magic/files')
-rw-r--r--dev-python/python-magic/files/python-magic-0.4.27-fix-tests-against-file-5.47.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-python/python-magic/files/python-magic-0.4.27-fix-tests-against-file-5.47.patch b/dev-python/python-magic/files/python-magic-0.4.27-fix-tests-against-file-5.47.patch
new file mode 100644
index 000000000000..500d942e7b23
--- /dev/null
+++ b/dev-python/python-magic/files/python-magic-0.4.27-fix-tests-against-file-5.47.patch
@@ -0,0 +1,29 @@
+https://bugs.gentoo.org/978316
+
+Based on
+https://github.com/ahupp/python-magic/pull/363
+https://github.com/ahupp/python-magic/commit/a1fad4334ca36f3263dc9e30d6dbb01dec1eed71
+
+diff --git a/test/python_magic_test.py b/test/python_magic_test.py
+index 624a443..67ae8f3 100755
+--- a/test/python_magic_test.py
++++ b/test/python_magic_test.py
+@@ -93,7 +93,7 @@ class MagicTest(unittest.TestCase):
+ 'magic._pyc_': ('application/octet-stream', 'text/x-bytecode.python', 'application/x-bytecode.python'),
+ 'test.pdf': 'application/pdf',
+ 'test.gz': ('application/gzip', 'application/x-gzip'),
+- 'test.snappy.parquet': 'application/octet-stream',
++ 'test.snappy.parquet': ('application/octet-stream', 'application/vnd.apache.parquet'),
+ 'text.txt': 'text/plain',
+ b'\xce\xbb'.decode('utf-8'): 'text/plain',
+ b'\xce\xbb': 'text/plain',
+@@ -123,7 +123,7 @@ class MagicTest(unittest.TestCase):
+ ': Sun Jun 29 01:32:52 2008, from Unix, truncated'
+ ),
+ 'text.txt': 'ASCII text',
+- 'test.snappy.parquet': ('Apache Parquet', 'Par archive data'),
++ 'test.snappy.parquet': ('Apache Parquet', 'Apache Parquet file', 'Par archive data'),
+ }, buf_equals_file=False)
+ finally:
+ del os.environ['TZ']
+