Browse Source

Adjust testsuite for changes in file 5.43+

Christoph Biedl 1 year ago
parent
commit
37d6d46c01
2 changed files with 17 additions and 0 deletions
  1. 16 0
      debian/patches/2022-12-23.adjust-for-5.43.patch
  2. 1 0
      debian/patches/series

+ 16 - 0
debian/patches/2022-12-23.adjust-for-5.43.patch

@@ -0,0 +1,16 @@
+Subject: Adjust for changes in file 5.43+
+Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
+Date: 2022-12-23
+Forwarded: https://github.com/ahupp/python-magic/issues/283
+
+--- a/test/python_magic_test.py
++++ b/test/python_magic_test.py
+@@ -134,7 +134,7 @@
+             self.assert_values(m, {
+                 # some versions return '' for the extensions of a gz file,
+                 # including w/ the command line.  Who knows...
+-                'test.gz': ('gz/tgz/tpz/zabw/svgz', '', '???'),
++                'test.gz': ('gz/tgz/tpz/zabw/svgz/adz/kmy/xcfgz', 'gz/tgz/tpz/zabw/svgz', '', '???'),
+                 'name_use.jpg': 'jpeg/jpg/jpe/jfif',
+             })
+         except NotImplementedError:

+ 1 - 0
debian/patches/series

@@ -1,6 +1,7 @@
 # cherry-picked from upstream. Keep in chronological order
 
 # patches that should go upstream
+2022-12-23.adjust-for-5.43.patch
 
 # modifications for Debian
 2022-06-05.adjust-tox.patch