[med-svn] [Git][med-team/filtlong][master] 2 commits: nudge-tests.patch: new: fix few issues in test suite.
Étienne Mollier (@emollier)
gitlab at salsa.debian.org
Sat Feb 28 11:36:42 GMT 2026
Étienne Mollier pushed to branch master at Debian Med / filtlong
Commits:
c5fd4c26 by Étienne Mollier at 2026-02-28T12:35:36+01:00
nudge-tests.patch: new: fix few issues in test suite.
- - - - -
85f83ac9 by Étienne Mollier at 2026-02-28T12:36:19+01:00
d/changelog: include a hotfix.
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/nudge-tests.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -5,8 +5,9 @@ filtlong (0.3.1-1) unstable; urgency=medium
* gcc-13.patch: delete: applied upstream.
* d/rules: clean some boilerplate.
* d/watch: convert to Github uscan template version 5.
+ * nudge-tests.patch: new: fix few issues in test suite.
- -- Étienne Mollier <emollier at debian.org> Sat, 28 Feb 2026 12:15:24 +0100
+ -- Étienne Mollier <emollier at debian.org> Sat, 28 Feb 2026 12:36:06 +0100
filtlong (0.2.1-5) unstable; urgency=medium
=====================================
debian/patches/nudge-tests.patch
=====================================
@@ -0,0 +1,46 @@
+Description: nudge a few tests to pass.
+ This change fixes a few instances of:
+ .
+ FAIL: test_backwards_compatibility (test.test_unit_suffixes.TestUnitSuffixes.test_backwards_compatibility)
+ Test that plain numbers still work (backwards compatibility).
+ ----------------------------------------------------------------------
+ Traceback (most recent call last):
+ File "/build/reproducible-path/filtlong-0.3.1/test/test_unit_suffixes.py", line 179, in test_backwards_compatibility
+ self.assertTrue('target: 10,000 bp' in console_out)
+ ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ AssertionError: False is not true
+ .
+ The missing element of the test looks to be cosmetic. Perhaps it is
+ coupled to a certain locale.
+Author: Étienne Mollier <emollier at debian.org>
+Forwarded: no
+Last-Update: 2026-02-28
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- filtlong.orig/test/test_unit_suffixes.py
++++ filtlong/test/test_unit_suffixes.py
+@@ -68,7 +68,7 @@
+ """Test that m suffix works for target_bases."""
+ console_out, return_code = self.run_command('filtlong --target_bases 0.01m INPUT > OUTPUT.fastq')
+ self.assertEqual(return_code, 0)
+- self.assertTrue('target: 10,000 bp' in console_out)
++ self.assertTrue('target: 10000 bp' in console_out)
+
+ def test_target_bases_mb_suffix(self):
+ """Test that mb suffix works for target_bases."""
+@@ -170,13 +170,13 @@
+ """Test that decimal values work with suffixes."""
+ console_out, return_code = self.run_command('filtlong --target_bases 3.5k INPUT > OUTPUT.fastq')
+ self.assertEqual(return_code, 0)
+- self.assertTrue('target: 3,500 bp' in console_out)
++ self.assertTrue('target: 3500 bp' in console_out)
+
+ def test_backwards_compatibility(self):
+ """Test that plain numbers still work (backwards compatibility)."""
+ console_out, return_code = self.run_command('filtlong --target_bases 10000 INPUT > OUTPUT.fastq')
+ self.assertEqual(return_code, 0)
+- self.assertTrue('target: 10,000 bp' in console_out)
++ self.assertTrue('target: 10000 bp' in console_out)
+
+ def test_negative_values_with_suffixes(self):
+ """Test that negative values with suffixes are properly rejected."""
=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
ignore_locales_in_test_output.patch
hardening.patch
+nudge-tests.patch
View it on GitLab: https://salsa.debian.org/med-team/filtlong/-/compare/cc9c608648eed044d636f547d70801ec4f19191c...85f83ac93e79dcb0590f08b000f6a8ecb7a7ea2f
--
View it on GitLab: https://salsa.debian.org/med-team/filtlong/-/compare/cc9c608648eed044d636f547d70801ec4f19191c...85f83ac93e79dcb0590f08b000f6a8ecb7a7ea2f
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/debian-med-commit/attachments/20260228/9e0d9272/attachment-0001.htm>
More information about the debian-med-commit
mailing list