[Debian-pan-maintainers] Bug#1109952: opentsne: tests fail with scipy 1.16 on 32-bit arches
Drew Parsons
dparsons at debian.org
Sun Jul 27 09:16:16 BST 2025
Source: opentsne
Version: 1.0.2-2
Severity: normal
scipy 1.16 has been uploaded to experimental.
opentsne is failing tests with it, on 32-bit arches.
The failure seems trivial:
the tolerance in test_set_perplexities_respects_symmetrization is
too tight (1e-16) for 32-bit systems.
The error message from armhf is
235s =================================== FAILURES ===================================
235s _________ TestMultiscale.test_set_perplexities_respects_symmetrization _________
235s
235s self = <tests.test_affinities.TestMultiscale testMethod=test_set_perplexities_respects_symmetrization>
235s
235s def test_set_perplexities_respects_symmetrization(self):
235s # Apply symmetrization
235s symmetrize = True
235s aff = Multiscale(self.x, perplexities=[10, 20], symmetrize=symmetrize)
235s self.assertAlmostEqual(np.sum(aff.P - aff.P.T), 0, delta=1e-16)
235s
235s aff.set_perplexities([5, 10])
235s self.assertAlmostEqual(np.sum(aff.P - aff.P.T), 0, delta=1e-16)
235s
235s # Skip symmetrization
235s symmetrize = False
235s aff = Multiscale(self.x, perplexities=[10, 20], symmetrize=symmetrize)
235s self.assertAlmostEqual(np.sum(aff.P - aff.P.T), 0, delta=1e-16)
235s
235s aff.set_perplexities([5, 10])
235s > self.assertAlmostEqual(np.sum(aff.P - aff.P.T), 0, delta=1e-16)
235s E AssertionError: np.float64(-1.1102230246251565e-16) != 0 within 1e-16 delta (np.float64(1.1102230246251565e-16) difference)
235s
235s tests/test_affinities.py:188: AssertionError
235s =========================== short test summary info ============================
235s FAILED tests/test_affinities.py::TestMultiscale::test_set_perplexities_respects_symmetrization
235s ====== 1 failed, 136 passed, 26 skipped, 7 warnings in 119.15s (0:01:59) =======
This bug will become RC serious later, once scipy 1.16 is uploaded to
unstable.
-- System Information:
Debian Release: 13.0
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.38+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
More information about the Debian-pan-maintainers
mailing list