Control: tags -1 + ftbfs patch pending

The autopkgtests in unstable [1] also fail on loong64, ppc64el,
riscv64 and s390x.

The attached patch was applied in Ubuntu, and appears to solve the
problem for their supported architectures.

Fortunately, the same tests are run during the build, so I should be
able to confirm whether this patch is sufficient in experimental
before doing a team upload to unstable.

Regards
Graham


[1] https://ci.debian.net/packages/p/python-questplus/
Description: Allow more rounding errors in the tests with scipy 1.14
Bug-Debian: https://bugs.debian.org/1079788
Author: Graham Inggs <gin...@debian.org>
Last-Update: 2024-12-19

--- a/questplus/tests/test_qp.py
+++ b/questplus/tests/test_qp.py
@@ -435,11 +435,11 @@
         next_stim_1 =  qp.next_stim['physical_magnitude_stim_1']
         next_stim_2 =  qp.next_stim['physical_magnitude_stim_2']
 
-        if trial_idx in (6, 20):
+        if trial_idx in (6, 20, 21):
             # Rounding errors make the algorithm behave differently on different platforms.
             if (
-                expected_stim_1 == next_stim_2 and
-                expected_stim_2 == next_stim_1
+                np.isclose(expected_stim_1, next_stim_2) and
+                np.isclose(expected_stim_2, next_stim_1)
             ):
                 expected_stim_1, expected_stim_2 = expected_stim_2, expected_stim_1
                 response = 'First' if response == 'Second' else 'Second'

Reply via email to