abydos autopkg tests fail with Python 3.12

Bug #2045121 reported by Shengjing Zhu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
abydos (Debian)
Fix Released
Unknown
abydos (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Imported from Debian bug http://bugs.debian.org/1056223:

Package: src:abydos
Version: 0.5.0+git20201231.344346a-6
Severity: important
Tags: sid trixie
User: <email address hidden>
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

Related branches

Shengjing Zhu (zhsj)
tags: added: update-excuse
Changed in abydos (Debian):
importance: Undecided → Unknown
Changed in abydos (Debian):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package abydos - 0.5.0+git20201231.344346a-7

---------------
abydos (0.5.0+git20201231.344346a-7) unstable; urgency=medium

  * Team upload.

  [ Julian Gilbey ]
  * Correct package description

  [ Shengjing Zhu ]
  * Fix comparing float number in pairwise tests on
    Python 3.12 (Closes: #1056223, LP: #2045121)

  [ Benjamin Drung ]
  * Do not install python-abydos-doc in pytest autopkgtest

 -- Benjamin Drung <email address hidden> Thu, 30 Nov 2023 17:06:43 +0100

Changed in abydos (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.