Browse Source

Disable gzip test. Closes: #897471

Christoph Biedl 5 years ago
parent
commit
e7937d1028
2 changed files with 19 additions and 0 deletions
  1. 18 0
      debian/patches/disable-gzip-test.patch
  2. 1 0
      debian/patches/series

+ 18 - 0
debian/patches/disable-gzip-test.patch

@@ -0,0 +1,18 @@
+Subject: Disable gzip test, it cannot cope with a recent change in libmagic
+Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de> 
+Date: 2018-07-21
+Bug-Debian: https://bugs.debian.org/897471
+Bug-Upstream: https://github.com/ahupp/python-magic/issues/173
+
+--- a/test/test.py
++++ b/test/test.py
+@@ -67,9 +67,6 @@
+             self.assert_values(m, {
+                 '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'),
+                 'text.txt': 'ASCII text',
+             })
+         finally:

+ 1 - 0
debian/patches/series

@@ -1,2 +1,3 @@
 cherry-pick.0.4.11-32-g9d127ce.update-filetype-reported-by-libmagic-5-23-for-keep-going-true.patch
 cherry-pick.0.4.11-32-g9d127ce.update-filetype-reported-by-libmagic-5-23-for-keep-going-true.patch
 libmagic-compat.patch
 libmagic-compat.patch
+disable-gzip-test.patch