cracklib2 FTBFS against python 3.12

Bug #2045290 reported by Olivier Gayot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cracklib2 (Debian)
Fix Released
Unknown
cracklib2 (Ubuntu)
Fix Released
High
Dan Bungert

Bug Description

Build against Python 3.12 is red. The build-time test-suite uses the obsolete function unittest.TestCase.assertEquals - which was dropped from Python 3.12.

.......EEEEE
======================================================================
ERROR: test_simple_combinations (test_cracklib.TestModuleFunctions.test_simple_combinations)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/debian/buildtmp/python3.12/python/build/lib.linux-x86_64-cpython-312/test_cracklib.py", line 122, in test_simple_combinations
    self.assertEquals(
    ^^^^^^^^^^^^^^^^^
AttributeError: 'TestModuleFunctions' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?

======================================================================
ERROR: test_simple_digit (test_cracklib.TestModuleFunctions.test_simple_digit)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/debian/buildtmp/python3.12/python/build/lib.linux-x86_64-cpython-312/test_cracklib.py", line 99, in test_simple_digit
    self.assertEquals(
    ^^^^^^^^^^^^^^^^^
AttributeError: 'TestModuleFunctions' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?

======================================================================
ERROR: test_simple_lower (test_cracklib.TestModuleFunctions.test_simple_lower)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/debian/buildtmp/python3.12/python/build/lib.linux-x86_64-cpython-312/test_cracklib.py", line 79, in test_simple_lower
    self.assertEquals(
    ^^^^^^^^^^^^^^^^^
AttributeError: 'TestModuleFunctions' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?

======================================================================
ERROR: test_simple_other (test_cracklib.TestModuleFunctions.test_simple_other)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/debian/buildtmp/python3.12/python/build/lib.linux-x86_64-cpython-312/test_cracklib.py", line 109, in test_simple_other
    self.assertEquals(
    ^^^^^^^^^^^^^^^^^
AttributeError: 'TestModuleFunctions' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?

======================================================================
ERROR: test_simple_upper (test_cracklib.TestModuleFunctions.test_simple_upper)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/debian/buildtmp/python3.12/python/build/lib.linux-x86_64-cpython-312/test_cracklib.py", line 89, in test_simple_upper
    self.assertEquals(
    ^^^^^^^^^^^^^^^^^
AttributeError: 'TestModuleFunctions' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?

Revision history for this message
Olivier Gayot (ogayot) wrote :

Adding debdiff.

The package is uploaded to the following PPA:

https://launchpad.net/~ogayot/+archive/ubuntu/noble-proposed/

Changed in cracklib2 (Ubuntu):
importance: Undecided → High
Changed in cracklib2 (Debian):
status: Unknown → New
Olivier Gayot (ogayot)
tags: added: proposed-migration
tags: added: update-excuse
removed: proposed-migration
Dan Bungert (dbungert)
Changed in cracklib2 (Ubuntu):
assignee: nobody → Dan Bungert (dbungert)
Revision history for this message
Dan Bungert (dbungert) wrote :

Uploaded, thanks!

Changed in cracklib2 (Ubuntu):
status: New → Fix Committed
Changed in cracklib2 (Debian):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cracklib2 - 2.9.6-5ubuntu1

---------------
cracklib2 (2.9.6-5ubuntu1) noble; urgency=medium

  * Fix build against Python 3.12. (LP: #2045290)

 -- Olivier Gayot <email address hidden> Thu, 30 Nov 2023 17:46:13 +0100

Changed in cracklib2 (Ubuntu):
status: Fix Committed → 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.