forked from pool/python-python-magic
- Update the patch magic-new-file.patch to work with newer file
package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
070d16a1c8
commit
573f93ed14
@@ -49,14 +49,18 @@ Index: python-magic-0.4.15/test/test.py
|
||||
|
||||
def test_from_buffer_str_and_bytes(self):
|
||||
m = magic.Magic(mime=True)
|
||||
@@ -67,9 +68,11 @@ class MagicTest(unittest.TestCase):
|
||||
('gzip compressed data, was "test", from Unix, last '
|
||||
'modified: Sun Jun 29 01:32:52 2008',
|
||||
'gzip compressed data, was "test", last modified'
|
||||
@@ -64,12 +65,12 @@ class MagicTest(unittest.TestCase):
|
||||
'magic._pyc_': 'python 2.4 byte-compiled',
|
||||
'test.pdf': 'PDF document, version 1.2',
|
||||
'test.gz':
|
||||
- ('gzip compressed data, was "test", from Unix, last '
|
||||
- 'modified: Sun Jun 29 01:32:52 2008',
|
||||
- 'gzip compressed data, was "test", last modified'
|
||||
- ': Sun Jun 29 01:32:52 2008, from Unix'),
|
||||
+ ': Sun Jun 29 01:32:52 2008, from Unix',
|
||||
+ 'gzip compressed data, was "test", last modified'
|
||||
+ ': Sun Jun 29 01:32:52 2008, from Unix, original size 15'),
|
||||
+ ('gzip compressed data, was "test", from Unix, last modified: Sun Jun 29 01:32:52 2008',
|
||||
+ 'gzip compressed data, was "test", last modified: Sun Jun 29 01:32:52 2008, from Unix',
|
||||
+ 'gzip compressed data, was "test", last modified: Sun Jun 29 01:32:52 2008, from Unix, original size 15',
|
||||
+ 'gzip compressed data, was "test", last modified: Sun Jun 29 01:32:52 2008, from Unix, original size modulo 2^32 15'),
|
||||
'text.txt': 'ASCII text',
|
||||
- })
|
||||
+ }, buf_equals_file=False)
|
||||
|
Reference in New Issue
Block a user