Source: python-extras
Version: 1.0.0-6
Severity: serious
Tags: ftbfs

python-extras fails to build:

assertEquals has been gone since 3.12, so not sure why this is failing now...

Full build log: 
https://debusine.debian.net/debian/r-stefanor-dh-python/artifact/2913420/raw/python-extras_1.0.0-6_amd64-2025-12-21T15:24:53Z.build

Tests running...
......EEE.......E.....======================================================================
ERROR: extras.tests.test_extras.TestTryImport.test_error_callback
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/build/reproducible-path/python-extras-1.0.0/extras/tests/test_extras.py", 
line 120, in test_error_callback
    check_error_callback(self, try_import, 'doesntexist', 1, False)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/build/reproducible-path/python-extras-1.0.0/extras/tests/test_extras.py", 
line 43, in check_error_callback
    test.assertEquals(len(cb_calls), expected_error_count)
    ^^^^^^^^^^^^^^^^^
AttributeError: 'TestTryImport' object has no attribute 'assertEquals'. Did you 
mean: 'assertEqual'?
======================================================================
ERROR: 
extras.tests.test_extras.TestTryImport.test_error_callback_missing_module_member
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/build/reproducible-path/python-extras-1.0.0/extras/tests/test_extras.py", 
line 125, in test_error_callback_missing_module_member
    check_error_callback(self, try_import, 'os.nonexistent', 1, False)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/build/reproducible-path/python-extras-1.0.0/extras/tests/test_extras.py", 
line 43, in check_error_callback
    test.assertEquals(len(cb_calls), expected_error_count)
    ^^^^^^^^^^^^^^^^^
AttributeError: 'TestTryImport' object has no attribute 'assertEquals'. Did you 
mean: 'assertEqual'?
======================================================================
ERROR: extras.tests.test_extras.TestTryImport.test_error_callback_not_on_success
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/build/reproducible-path/python-extras-1.0.0/extras/tests/test_extras.py", 
line 129, in test_error_callback_not_on_success
    check_error_callback(self, try_import, 'os.path', 0, True)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/build/reproducible-path/python-extras-1.0.0/extras/tests/test_extras.py", 
line 43, in check_error_callback
    test.assertEquals(len(cb_calls), expected_error_count)
    ^^^^^^^^^^^^^^^^^
AttributeError: 'TestTryImport' object has no attribute 'assertEquals'. Did you 
mean: 'assertEqual'?
======================================================================
ERROR: extras.tests.test_extras.TestTryImports.test_error_callback
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/build/reproducible-path/python-extras-1.0.0/extras/tests/test_extras.py", 
line 197, in test_error_callback
    check_error_callback(self, try_imports,
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
        ['os.doesntexist', 'os.notthiseither'],
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        2, False)
        ^^^^^^^^^
  File 
"/build/reproducible-path/python-extras-1.0.0/extras/tests/test_extras.py", 
line 43, in check_error_callback
    test.assertEquals(len(cb_calls), expected_error_count)
    ^^^^^^^^^^^^^^^^^
AttributeError: 'TestTryImports' object has no attribute 'assertEquals'. Did 
you mean: 'assertEqual'?


Ran 22 tests in 0.003s
FAILED (failures=4)

Reply via email to