FTBFS in noble: test failures: object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?

Bug #2061325 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sosreport (Debian)
Fix Released
Unknown
sosreport (Ubuntu)
Fix Released
High
Andreas Hasenack

Bug Description

https://launchpad.net/ubuntu/+source/sosreport/4.5.6-0ubuntu3 is failing to build in noble.

Lots of test failures like:
ERROR: test_open_file (tests.unittests.utilities_tests.GrepTest.test_open_file)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/tests/unittests/utilities_tests.py", line 35, in test_open_file
    self.assertEquals(matches, ['import unittest\n'])
    ^^^^^^^^^^^^^^^^^
AttributeError: 'GrepTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?

Update: https://github.com/sosreport/sos/commit/769768aabcae3d0265332ee72e9df94d1001f14c

Tags: ftbfs
description: updated
Changed in sosreport (Ubuntu):
assignee: nobody → Andreas Hasenack (ahasenack)
status: New → In Progress
Changed in sosreport (Debian):
status: Unknown → Fix Released
Revision history for this message
Arif Ali (arif-ali) wrote :

We have a planned SRU of sosreport 4.7.0 which would have this fix already which we're still waiting for the sponsors to pick in LP:2054395, that would resolve this bug as well as updating sosreport to the new version.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

This is in noble-proposed now.

Changed in sosreport (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sosreport - 4.5.6-0ubuntu4

---------------
sosreport (4.5.6-0ubuntu4) noble; urgency=medium

  * d/p/removed-assertEquals-fix.patch: assertEquals was removed, let's
    use assertEqual (LP: #2061325)

 -- Andreas Hasenack <email address hidden> Sun, 14 Apr 2024 21:45:27 +0000

Changed in sosreport (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.