From 0ae7e7ceac0e80e03adc75c858bb378c0427331a Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 22 Oct 2021 09:47:32 +0200 Subject: Support file 5.41. In https://github.com/file/file/commit/7d9b0f0d853957ad88dae0f440fecd58d2740ca7, the MIME was changed for Python bytecode. --- test/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.py b/test/test.py index 0c4621c..e443b84 100755 --- a/test/test.py +++ b/test/test.py @@ -90,7 +90,7 @@ class MagicTest(unittest.TestCase): try: m = magic.Magic(mime=True) self.assert_values(m, { - 'magic._pyc_': ('application/octet-stream', 'text/x-bytecode.python'), + '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', -- cgit v1.2.1