Package: src:cracklib2
Version: 2.9.6-5
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12
cracklib2 tests fail with Python 3.12:
[...]
set -e; \
for i in 3.12 3.11; do \
cd /<<PKGBUILDDIR>>/debian/buildtmp/python$i/python/$(_py_=$i;
python${_py_#python*} -c 'import setuptools; from
distutils.command.build import build; from distutils.core import
Distribution; b = build(Distribution()); b.finalize_options();
print(b.build_platlib)'); \
LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/debian/buildtmp/base/lib/.libs
python$i \
-c 'import cracklib;
cracklib.test(dictpath="/<<PKGBUILDDIR>>/debian/tmp/cracklib_dict")'; \
done
.......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'?
----------------------------------------------------------------------
Ran 12 tests in 0.016s
FAILED (errors=5)
cracklib is installed in:
/<<PKGBUILDDIR>>/debian/buildtmp/python3.12/python/build/lib.linux-x86_64-cpython-312
cracklib version: 2.8.19
3.12.0 (main, Oct 4 2023, 06:27:34) [GCC 13.2.0]
make[1]: *** [debian/rules:76: override_dh_auto_test] Error 1