[Pkg-privacy-commits] [Git][pkg-privacy-team/mat2][master] 3 commits: Add patch to fix AssertionError in test_libmat2
Georg Faerber (@georg)
georg at debian.org
Fri Mar 11 13:01:20 GMT 2022
Georg Faerber pushed to branch master at Privacy Maintainers / mat2
Commits:
03db548a by Utkarsh Gupta at 2022-03-11T18:19:38+05:30
Add patch to fix AssertionError in test_libmat2
- - - - -
b60138a9 by Utkarsh Gupta at 2022-03-11T18:20:17+05:30
Update d/ch for 0.12.2-1.1 release
- - - - -
15d2af75 by Georg Faerber at 2022-03-11T13:01:15+00:00
Merge branch 'fix-assertion-error' into 'master'
Fix AssertionError in test_libmat2
See merge request pkg-privacy-team/mat2!3
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/fix-assertion-error-in-libmat2.patch
- + debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+mat2 (0.12.2-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Add patch to fix AssertionError in test_libmat2.
+ (Closes: #1002418)
+
+ -- Utkarsh Gupta <utkarsh at debian.org> Tue, 18 Jan 2022 18:17:24 +0530
+
mat2 (0.12.2-1) unstable; urgency=medium
* New upstream version 0.12.2:
=====================================
debian/patches/fix-assertion-error-in-libmat2.patch
=====================================
@@ -0,0 +1,36 @@
+From cd2b9af902a8afebbb3a16b8892b087d928fa9c8 Mon Sep 17 00:00:00 2001
+From: jvoisin <julien.voisin at dustri.org>
+Date: Sun, 26 Dec 2021 15:45:29 +0100
+Subject: [PATCH] Fix the Debian CI
+
+This should fix #162
+---
+ tests/test_libmat2.py | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+--- a/tests/test_libmat2.py
++++ b/tests/test_libmat2.py
+@@ -413,7 +413,7 @@
+ 'name': 'gif',
+ 'parser': images.GIFParser,
+ 'meta': {'Comment': 'this is a test comment'},
+- 'expected_meta': {},
++ 'expected_meta': {'TransparentColor': '5'},
+ },{
+ 'name': 'css',
+ 'parser': web.CSSParser,
+@@ -515,9 +515,11 @@
+ self.assertTrue(p1.remove_all())
+
+ p2 = case['parser'](p1.output_filename)
+- for k, v in p2.get_meta().items():
+- self.assertIn(k, case['expected_meta'])
+- self.assertIn(str(case['expected_meta'][k]), str(v))
++ meta = p2.get_meta()
++ if meta:
++ for k, v in p2.get_meta().items():
++ self.assertIn(k, case['expected_meta'], '"%s" is not in "%s" (%s)' % (k, case['expected_meta'], case['name']))
++ self.assertIn(str(case['expected_meta'][k]), str(v))
+ self.assertTrue(p2.remove_all())
+
+ os.remove(target)
=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+fix-assertion-error-in-libmat2.patch
View it on GitLab: https://salsa.debian.org/pkg-privacy-team/mat2/-/compare/7fd42989880b67e3cfe7637383af12c80f9410de...15d2af755510adc97e86b55edefc50eca9daead3
--
View it on GitLab: https://salsa.debian.org/pkg-privacy-team/mat2/-/compare/7fd42989880b67e3cfe7637383af12c80f9410de...15d2af755510adc97e86b55edefc50eca9daead3
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-privacy-commits/attachments/20220311/cf7b0cfa/attachment-0001.htm>
More information about the Pkg-privacy-commits
mailing list