X-Debbugs-CC: j...@debian.org Control: tags -1 patch On Sun, Nov 19, 2023 at 11:39:31AM +0100, Matthias Klose wrote: > Package: src:abydos > Version: 0.5.0+git20201231.344346a-6 > Severity: important > Tags: sid trixie > User: debian-pyt...@lists.debian.org > Usertags: python3.12 > > abydos autopkg tests fail with Python 3.12: > > [...] > 486s ====================================================================== > 486s FAIL: test_mean_pairwise_similarity > (tests.stats.test_stats_pairwise.MPSTestCases.test_mean_pairwise_similarity) > 486s Test abydos.stats.mean_pairwise_similarity. > 486s ---------------------------------------------------------------------- > 486s Traceback (most recent call last): > 486s File > "/tmp/autopkgtest.U4aAdq/autopkgtest_tmp/tests/stats/test_stats_pairwise.py", > line 78, in test_mean_pairwise_similarity > 486s self.assertEqual(mean_pairwise_similarity(NIALL), > 0.29362587170180671) > 486s AssertionError: 0.29362587170180665 != 0.2936258717018067 > 486s > 486s ---------------------------------------------------------------------- > 486s Ran 940 tests in 6.315s > 486s > 486s FAILED (failures=1, skipped=4) > 486s autopkgtest [20:36:15]: test pytest: -----------------------] > 486s pytest FAIL non-zero exit status 1
More tests need to use assertAlmostEqual to compare floating numbers. Please see the merge request https://salsa.debian.org/python-team/packages/abydos/-/merge_requests/1 Thanks