forked from pool/python-python-magic
- Version update to 0.4.15:
* Few test tweaks - Enable tests - Add patch to fix gzip detection in tests: * magic-tests.patch - Add patch to fix working with new file: * magic-new-file.patch - Add patch to work with new mimedb: * magic-new-mime.patch - Add patch magic-pep8.patch to have other patches apply cleanly OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
23116a79d5
commit
070d16a1c8
22
magic-tests.patch
Normal file
22
magic-tests.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
From e83487a20bacd4f9b33d0478861671bf79468f59 Mon Sep 17 00:00:00 2001
|
||||
From: Louis Sautier <sautier.louis@gmail.com>
|
||||
Date: Mon, 13 Aug 2018 12:15:13 +0200
|
||||
Subject: [PATCH] Allow x-gzip as MIME type for gzip files, fixes #96
|
||||
|
||||
---
|
||||
test/test.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/test/test.py b/test/test.py
|
||||
index e29335f..e3ee703 100755
|
||||
--- a/test/test.py
|
||||
+++ b/test/test.py
|
||||
@@ -54,7 +54,7 @@ def test_mime_types(self):
|
||||
self.assert_values(m, {
|
||||
'magic._pyc_': 'application/octet-stream',
|
||||
'test.pdf': 'application/pdf',
|
||||
- 'test.gz': 'application/gzip',
|
||||
+ 'test.gz': ('application/gzip', 'application/x-gzip'),
|
||||
'text.txt': 'text/plain',
|
||||
b'\xce\xbb'.decode('utf-8'): 'text/plain',
|
||||
b'\xce\xbb': 'text/plain',
|
Reference in New Issue
Block a user