Bug#1058229: liac-arff: FTBFS: AttributeError: 'TestEncodeComment' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?

Lucas Nussbaum lucas at debian.org
Tue Dec 12 08:11:47 GMT 2023


Source: liac-arff
Version: 2.5.0-4
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20231212 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary --with=python3 --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:310: python3.12 setup.py config 
> running config
> I: pybuild base:310: python3.11 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:310: /usr/bin/python3.12 setup.py build 
> running build
> running build_py
> copying arff.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build
> I: pybuild base:310: /usr/bin/python3 setup.py build 
> running build
> running build_py
> copying arff.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:310: python3.12 setup.py test 
> running test
> WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
> /usr/lib/python3/dist-packages/setuptools/command/test.py:193: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
> !!
> 
>         ********************************************************************************
>         Requirements should be satisfied by a PEP 517 installer.
>         If you are using pip, you can try `pip install --use-pep517`.
>         ********************************************************************************
> 
> !!
>   ir_d = dist.fetch_build_eggs(dist.install_requires)
> WARNING: The wheel package is not available.
> /usr/lib/python3/dist-packages/setuptools/command/test.py:194: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
> !!
> 
>         ********************************************************************************
>         Requirements should be satisfied by a PEP 517 installer.
>         If you are using pip, you can try `pip install --use-pep517`.
>         ********************************************************************************
> 
> !!
>   tr_d = dist.fetch_build_eggs(dist.tests_require or [])
> WARNING: The wheel package is not available.
> /usr/lib/python3/dist-packages/setuptools/command/test.py:195: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
> !!
> 
>         ********************************************************************************
>         Requirements should be satisfied by a PEP 517 installer.
>         If you are using pip, you can try `pip install --use-pep517`.
>         ********************************************************************************
> 
> !!
>   er_d = dist.fetch_build_eggs(
> WARNING: The wheel package is not available.
> running egg_info
> creating liac_arff.egg-info
> writing liac_arff.egg-info/PKG-INFO
> writing dependency_links to liac_arff.egg-info/dependency_links.txt
> writing top-level names to liac_arff.egg-info/top_level.txt
> writing manifest file 'liac_arff.egg-info/SOURCES.txt'
> reading manifest file 'liac_arff.egg-info/SOURCES.txt'
> adding license file 'LICENSE'
> writing manifest file 'liac_arff.egg-info/SOURCES.txt'
> running build_ext
> /<<PKGBUILDDIR>>/tests/test_decode.py:328: SyntaxWarning: invalid escape sequence '\{'
>   '\{2 a\}'):
> /<<PKGBUILDDIR>>/tests/test_decode.py:335: SyntaxWarning: invalid escape sequence '\{'
>   '\{2 a\}'):
> /<<PKGBUILDDIR>>/tests/test_decode.py:342: SyntaxWarning: invalid escape sequence '\{'
>   '\{2 a\}'):
> /<<PKGBUILDDIR>>/tests/test_decode.py:400: SyntaxWarning: invalid escape sequence '\}'
>   "',1 'c d'\}."):
> test_encode_destiny (tests.test_dump_escape.TestDumpEscape.test_encode_destiny) ... ok
> test_encode_source (tests.test_dump_escape.TestDumpEscape.test_encode_source) ... ok
> test_decode (tests.test_decode.TestDecodeComment.test_decode) ... ok
> test_decode_dense_gen (tests.test_decode.TestDecodeComment.test_decode_dense_gen) ... ok
> test_decode_dense_gen_data_error (tests.test_decode.TestDecodeComment.test_decode_dense_gen_data_error) ... ok
> test_decode_lod_gen (tests.test_decode.TestDecodeComment.test_decode_lod_gen) ... ok
> test_decode_lod_gen_data_error (tests.test_decode.TestDecodeComment.test_decode_lod_gen_data_error) ... ok
> test_decode_with_label_encoding (tests.test_decode.TestDecodeComment.test_decode_with_label_encoding) ... ok
> test_decode_xor_sparse_coo (tests.test_decode.TestDecodeComment.test_decode_xor_sparse_coo) ... ok
> test_decode_xor_sparse_lod (tests.test_decode.TestDecodeComment.test_decode_xor_sparse_lod) ... ok
> test_invalid_data_len (tests.test_decode.TestDecodeComment.test_invalid_data_len)
> When there is more (or less) data then attributes. ... ok
> test_invalid_layout (tests.test_decode.TestDecodeComment.test_invalid_layout) ... ok
> test_decode (tests.test_decode.TestDuplicateAttributeName.test_decode) ... ERROR
> test_dense (tests.test_decode.TestInvalidValues.test_dense) ... ERROR
> test_sparse (tests.test_decode.TestInvalidValues.test_sparse) ... ERROR
> test_coo (tests.test_decode.TestTooManyAttributes.test_coo) ... ERROR
> test_dense (tests.test_decode.TestTooManyAttributes.test_dense) ... ERROR
> test_lod (tests.test_decode.TestTooManyAttributes.test_lod) ... ERROR
> test_conversor (tests.test_data.TestCOOData.test_conversor)
> Basic data instances. ... ok
> test_encode_scipy_coo_example (tests.test_data.TestCOOData.test_encode_scipy_coo_example) ... ok
> test_encode_too_many_attributes_coo (tests.test_data.TestCOOData.test_encode_too_many_attributes_coo) ... ERROR
> test_null_value (tests.test_data.TestCOOData.test_null_value) ... ok
> test_simple (tests.test_data.TestCOOData.test_simple) ... ok
> test_sparse (tests.test_data.TestCOOData.test_sparse)
> Basic data instances. ... ok
> test_sparse_matrix (tests.test_data.TestCOOData.test_sparse_matrix) ... ok
> test_conversor (tests.test_data.TestData.test_conversor)
> Basic data instances. ... ok
> test_encode_too_many_attributes_dense (tests.test_data.TestData.test_encode_too_many_attributes_dense) ... ERROR
> test_null_value (tests.test_data.TestData.test_null_value) ... ok
> test_simple (tests.test_data.TestData.test_simple) ... ok
> test_sparse (tests.test_data.TestData.test_sparse)
> Basic data instances. ... ok
> test_too_short (tests.test_data.TestData.test_too_short) ... ok
> test_conversor (tests.test_data.TestLODData.test_conversor)
> Basic data instances. ... ok
> test_encode_too_many_attributes_lod (tests.test_data.TestLODData.test_encode_too_many_attributes_lod) ... ERROR
> test_null_value (tests.test_data.TestLODData.test_null_value) ... ok
> test_simple (tests.test_data.TestLODData.test_simple) ... ok
> test_sparse (tests.test_data.TestLODData.test_sparse)
> Basic data instances. ... ok
> test_sparse_matrix (tests.test_data.TestLODData.test_sparse_matrix) ... ok
> test_simple (tests.test_encode_comment.TestEncodeComment.test_simple) ... ok
> test_bad_escapes (tests.test_decode_data.TestDecodeData.test_bad_escapes) ... ok
> test_bad_quotes (tests.test_decode_data.TestDecodeData.test_bad_quotes) ... ok
> test_bad_quotes_sparse (tests.test_decode_data.TestDecodeData.test_bad_quotes_sparse) ... ok
> test_escapes (tests.test_decode_data.TestDecodeData.test_escapes) ... ok
> test_escapes_sparse (tests.test_decode_data.TestDecodeData.test_escapes_sparse) ... ok
> test_internal_brace (tests.test_decode_data.TestDecodeData.test_internal_brace) ... ok
> test_multiple_values (tests.test_decode_data.TestDecodeData.test_multiple_values) ... ok
> test_multiple_values_sparse (tests.test_decode_data.TestDecodeData.test_multiple_values_sparse) ... ok
> test_quotes (tests.test_decode_data.TestDecodeData.test_quotes) ... ok
> test_quotes_sparse (tests.test_decode_data.TestDecodeData.test_quotes_sparse) ... ok
> test_simple (tests.test_dump.TestDump.test_simple) ... ok
> test_issue_69 (tests.test_loads_dumps.TestLoadDump.test_issue_69) ... ok
> test_simple (tests.test_loads_dumps.TestLoadDump.test_simple) ... ok
> test_encoded_nominal (tests.test_conversor.TestDecodeConversorCOO.test_encoded_nominal)
> Convert nominal to encoded nominal value. ... ok
> test_integer (tests.test_conversor.TestDecodeConversorCOO.test_integer)
> Convert real value. ... ok
> test_invalid_nominal_value (tests.test_conversor.TestDecodeConversorCOO.test_invalid_nominal_value)
> Invalid nominal value. ... ok
> test_invalid_numerical_value (tests.test_conversor.TestDecodeConversorCOO.test_invalid_numerical_value)
> Invalid numerical value. ... ok
> test_nominal (tests.test_conversor.TestDecodeConversorCOO.test_nominal)
> Convert nominal value. ... ok
> test_null_value (tests.test_conversor.TestDecodeConversorCOO.test_null_value)
> Values such as "?", or "". ... ok
> test_numeric (tests.test_conversor.TestDecodeConversorCOO.test_numeric)
> Convert real value. ... ok
> test_padding_value (tests.test_conversor.TestDecodeConversorCOO.test_padding_value)
> Values such "    3.1415   " ... ok
> test_real (tests.test_conversor.TestDecodeConversorCOO.test_real)
> Convert real value. ... ok
> test_string (tests.test_conversor.TestDecodeConversorCOO.test_string)
> Convert string value. ... ok
> test_encoded_nominal (tests.test_conversor.TestDecodeConversorDense.test_encoded_nominal)
> Convert nominal to encoded nominal value. ... ok
> test_integer (tests.test_conversor.TestDecodeConversorDense.test_integer)
> Convert real value. ... ok
> test_invalid_nominal_value (tests.test_conversor.TestDecodeConversorDense.test_invalid_nominal_value)
> Invalid nominal value. ... ok
> test_invalid_numerical_value (tests.test_conversor.TestDecodeConversorDense.test_invalid_numerical_value)
> Invalid numerical value. ... ok
> test_nominal (tests.test_conversor.TestDecodeConversorDense.test_nominal)
> Convert nominal value. ... ok
> test_null_value (tests.test_conversor.TestDecodeConversorDense.test_null_value)
> Values such as "?", or "". ... ok
> test_numeric (tests.test_conversor.TestDecodeConversorDense.test_numeric)
> Convert real value. ... ok
> test_padding_value (tests.test_conversor.TestDecodeConversorDense.test_padding_value)
> Values such "    3.1415   " ... ok
> test_real (tests.test_conversor.TestDecodeConversorDense.test_real)
> Convert real value. ... ok
> test_string (tests.test_conversor.TestDecodeConversorDense.test_string)
> Convert string value. ... ok
> test_encoded_nominal (tests.test_conversor.TestDecodeConversorLOD.test_encoded_nominal)
> Convert nominal to encoded nominal value. ... ok
> test_integer (tests.test_conversor.TestDecodeConversorLOD.test_integer)
> Convert real value. ... ok
> test_invalid_nominal_value (tests.test_conversor.TestDecodeConversorLOD.test_invalid_nominal_value)
> Invalid nominal value. ... ok
> test_invalid_numerical_value (tests.test_conversor.TestDecodeConversorLOD.test_invalid_numerical_value)
> Invalid numerical value. ... ok
> test_nominal (tests.test_conversor.TestDecodeConversorLOD.test_nominal)
> Convert nominal value. ... ok
> test_null_value (tests.test_conversor.TestDecodeConversorLOD.test_null_value)
> Values such as "?", or "". ... ok
> test_numeric (tests.test_conversor.TestDecodeConversorLOD.test_numeric)
> Convert real value. ... ok
> test_padding_value (tests.test_conversor.TestDecodeConversorLOD.test_padding_value)
> Values such "    3.1415   " ... ok
> test_real (tests.test_conversor.TestDecodeConversorLOD.test_real)
> Convert real value. ... ok
> test_string (tests.test_conversor.TestDecodeConversorLOD.test_string)
> Convert string value. ... ok
> test_encoded_nominal (tests.test_conversor.TestDecodeConversorSparseDense.test_encoded_nominal)
> Convert nominal to encoded nominal value. ... ok
> test_integer (tests.test_conversor.TestDecodeConversorSparseDense.test_integer)
> Convert real value. ... ok
> test_invalid_nominal_value (tests.test_conversor.TestDecodeConversorSparseDense.test_invalid_nominal_value)
> Invalid nominal value. ... ok
> test_invalid_numerical_value (tests.test_conversor.TestDecodeConversorSparseDense.test_invalid_numerical_value)
> Invalid numerical value. ... ok
> test_nominal (tests.test_conversor.TestDecodeConversorSparseDense.test_nominal)
> Convert nominal value. ... ok
> test_null_value (tests.test_conversor.TestDecodeConversorSparseDense.test_null_value)
> Values such as "?", or "". ... ok
> test_numeric (tests.test_conversor.TestDecodeConversorSparseDense.test_numeric)
> Convert real value. ... ok
> test_padding_value (tests.test_conversor.TestDecodeConversorSparseDense.test_padding_value)
> Values such "    3.1415   " ... ok
> test_real (tests.test_conversor.TestDecodeConversorSparseDense.test_real)
> Convert real value. ... ok
> test_string (tests.test_conversor.TestDecodeConversorSparseDense.test_string)
> Convert string value. ... ok
> test_simple (tests.test_load.TestLoad.test_simple) ... ok
> test_attribute_invalid_attribute_type (tests.test_encode.TestEncodeComment.test_attribute_invalid_attribute_type) ... ok
> test_encode (tests.test_encode.TestEncodeComment.test_encode) ... ok
> test_encode_adding_quotes_with_spaces (tests.test_encode.TestEncodeComment.test_encode_adding_quotes_with_spaces) ... ok
> test_encode_duplicate_attribute_name (tests.test_encode.TestEncodeComment.test_encode_duplicate_attribute_name) ... ERROR
> test_encode_string (tests.test_encode.TestEncodeComment.test_encode_string) ... ok
> test_invalid_object (tests.test_encode.TestEncodeComment.test_invalid_object) ... ok
> test_invalid_object_attribute (tests.test_encode.TestEncodeComment.test_invalid_object_attribute) ... ok
> test_iter_encode (tests.test_encode.TestEncodeComment.test_iter_encode) ... ok
> test_integer (tests.test_decode_attribute_types.TestDecodeAttributeTypes.test_integer)
> Integer attributes. ... ok
> test_invalid_type (tests.test_decode_attribute_types.TestDecodeAttributeTypes.test_invalid_type)
> Invalid type name or structure. ... ok
> test_nominal (tests.test_decode_attribute_types.TestDecodeAttributeTypes.test_nominal)
> Nominal attributes. ... ok
> test_numeric (tests.test_decode_attribute_types.TestDecodeAttributeTypes.test_numeric)
> Numeric attributes. ... ok
> test_real (tests.test_decode_attribute_types.TestDecodeAttributeTypes.test_real)
> Real attributes. ... ok
> test_string (tests.test_decode_attribute_types.TestDecodeAttributeTypes.test_string)
> String attributes. ... ok
> test_simple (tests.test_dumps.TestDumps.test_simple) ... ok
> test_simple (tests.test_dumps_escape.TestDumps.test_simple) ... ok
> test_attribute_integer (tests.test_encode_attribute.TestEncodeAttribute.test_attribute_integer) ... ok
> test_attribute_name (tests.test_encode_attribute.TestEncodeAttribute.test_attribute_name) ... ok
> test_attribute_name_special (tests.test_encode_attribute.TestEncodeAttribute.test_attribute_name_special) ... ok
> test_attribute_nominal (tests.test_encode_attribute.TestEncodeAttribute.test_attribute_nominal) ... ok
> test_attribute_nominal_spaced (tests.test_encode_attribute.TestEncodeAttribute.test_attribute_nominal_spaced) ... ok
> test_attribute_numeric (tests.test_encode_attribute.TestEncodeAttribute.test_attribute_numeric) ... ok
> test_attribute_real (tests.test_encode_attribute.TestEncodeAttribute.test_attribute_real) ... ok
> test_attribute_string (tests.test_encode_attribute.TestEncodeAttribute.test_attribute_string) ... ok
> test_invalid_characters (tests.test_decode_attribute.TestDecodeAttribute.test_invalid_characters)
> Attributes with bad format. ... ok
> test_invalid_format (tests.test_decode_attribute.TestDecodeAttribute.test_invalid_format)
> Attributes with bad format. ... ok
> test_numeric_name (tests.test_decode_attribute.TestDecodeAttribute.test_numeric_name)
> Attributes with quoted name but without space. ... ok
> test_padding (tests.test_decode_attribute.TestDecodeAttribute.test_padding)
> Attributes with spaces between attribute declaration and name, and ... ok
> test_quoted (tests.test_decode_attribute.TestDecodeAttribute.test_quoted)
> Attributes with quoted name but without space. ... ok
> test_quoted_space (tests.test_decode_attribute.TestDecodeAttribute.test_quoted_space)
> Attributes with quoted name and space. ... ok
> test_quoted_special (tests.test_decode_attribute.TestDecodeAttribute.test_quoted_special)
> Attributes with quoted name but without space. ... ok
> test_espaced (tests.test_encode_relation.TestEncodeRelation.test_espaced)
> Relation name with spaces. ... ok
> test_simple (tests.test_encode_relation.TestEncodeRelation.test_simple)
> Relation name without spaces. ... ok
> test_special (tests.test_encode_relation.TestEncodeRelation.test_special)
> Relation name with spaces. ... ok
> test_format_correct (tests.test_loads.TestLoads.test_format_correct) ... ok
> test_format_error_attribute (tests.test_loads.TestLoads.test_format_error_attribute) ... ok
> test_format_error_relation (tests.test_loads.TestLoads.test_format_error_relation) ... ok
> test_quoted_null (tests.test_loads.TestLoads.test_quoted_null) ... ok
> test_simple (tests.test_loads.TestLoads.test_simple) ... ok
> test_sparse_input (tests.test_loads.TestLoads.test_sparse_input) ... ok
> test_padding (tests.test_decode_comment.TestDecodeComment.test_padding)
> Comments with space padding right after the % character. ... ok
> test_simple (tests.test_decode_comment.TestDecodeComment.test_simple)
> Comments without any space padding or special characters. ... ok
> test_invalid_characters (tests.test_decode_relation.TestDecodeRelation.test_invalid_characters)
> Relation names with spaces and without quotes. ... ok
> test_invalid_spaces (tests.test_decode_relation.TestDecodeRelation.test_invalid_spaces)
> Relation names with spaces and without quotes. ... ok
> test_padding (tests.test_decode_relation.TestDecodeRelation.test_padding)
> Relation names with padding between @RELATION and the value. ... ok
> test_quotes (tests.test_decode_relation.TestDecodeRelation.test_quotes)
> Quoted relation names and without space in the name. ... ok
> test_quotes_and_special (tests.test_decode_relation.TestDecodeRelation.test_quotes_and_special)
> Quoted relation names and without space in the name. ... ok
> test_simple (tests.test_decode_relation.TestDecodeRelation.test_simple)
> Relation names without spaces. ... ok
> test_spaces (tests.test_decode_relation.TestDecodeRelation.test_spaces)
> Quoted relation names with spaces in the name. ... ok
> 
> ======================================================================
> ERROR: test_decode (tests.test_decode.TestDuplicateAttributeName.test_decode)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_decode.py", line 359, in test_decode
>     with self.assertRaisesRegexp(arff.BadAttributeName,
>          ^^^^^^^^^^^^^^^^^^^^^^^
> AttributeError: 'TestDuplicateAttributeName' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> ======================================================================
> ERROR: test_dense (tests.test_decode.TestInvalidValues.test_dense)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_decode.py", line 382, in test_dense
>     with self.assertRaisesRegexp(arff.ArffException,
>          ^^^^^^^^^^^^^^^^^^^^^^^
> AttributeError: 'TestInvalidValues' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> ======================================================================
> ERROR: test_sparse (tests.test_decode.TestInvalidValues.test_sparse)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_decode.py", line 399, in test_sparse
>     with self.assertRaisesRegexp(arff.ArffException,
>          ^^^^^^^^^^^^^^^^^^^^^^^
> AttributeError: 'TestInvalidValues' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> ======================================================================
> ERROR: test_coo (tests.test_decode.TestTooManyAttributes.test_coo)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_decode.py", line 333, in test_coo
>     with self.assertRaisesRegexp(arff.BadDataFormat,
>          ^^^^^^^^^^^^^^^^^^^^^^^
> AttributeError: 'TestTooManyAttributes' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> ======================================================================
> ERROR: test_dense (tests.test_decode.TestTooManyAttributes.test_dense)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_decode.py", line 326, in test_dense
>     with self.assertRaisesRegexp(arff.BadDataFormat,
>          ^^^^^^^^^^^^^^^^^^^^^^^
> AttributeError: 'TestTooManyAttributes' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> ======================================================================
> ERROR: test_lod (tests.test_decode.TestTooManyAttributes.test_lod)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_decode.py", line 340, in test_lod
>     with self.assertRaisesRegexp(arff.BadDataFormat,
>          ^^^^^^^^^^^^^^^^^^^^^^^
> AttributeError: 'TestTooManyAttributes' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> ======================================================================
> ERROR: test_encode_too_many_attributes_coo (tests.test_data.TestCOOData.test_encode_too_many_attributes_coo)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_data.py", line 206, in test_encode_too_many_attributes_coo
>     with self.assertRaisesRegexp(arff.BadObject,
>          ^^^^^^^^^^^^^^^^^^^^^^^
> AttributeError: 'TestCOOData' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> ======================================================================
> ERROR: test_encode_too_many_attributes_dense (tests.test_data.TestData.test_encode_too_many_attributes_dense)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_data.py", line 99, in test_encode_too_many_attributes_dense
>     with self.assertRaisesRegexp(arff.BadObject,
>          ^^^^^^^^^^^^^^^^^^^^^^^
> AttributeError: 'TestData' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> ======================================================================
> ERROR: test_encode_too_many_attributes_lod (tests.test_data.TestLODData.test_encode_too_many_attributes_lod)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_data.py", line 300, in test_encode_too_many_attributes_lod
>     with self.assertRaisesRegexp(arff.BadObject,
>          ^^^^^^^^^^^^^^^^^^^^^^^
> AttributeError: 'TestLODData' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> ======================================================================
> ERROR: test_encode_duplicate_attribute_name (tests.test_encode.TestEncodeComment.test_encode_duplicate_attribute_name)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_encode.py", line 169, in test_encode_duplicate_attribute_name
>     with self.assertRaisesRegexp(arff.BadObject,
>          ^^^^^^^^^^^^^^^^^^^^^^^
> AttributeError: 'TestEncodeComment' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> ----------------------------------------------------------------------
> Ran 141 tests in 0.085s
> 
> FAILED (errors=10)
> Test failed: <unittest.runner.TextTestResult run=141 errors=10 failures=0>
> error: Test failed: <unittest.runner.TextTestResult run=141 errors=10 failures=0>
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: python3.12 setup.py test 
> I: pybuild base:310: python3.11 setup.py test 
> running test
> WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
> /usr/lib/python3/dist-packages/setuptools/command/test.py:193: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
> !!
> 
>         ********************************************************************************
>         Requirements should be satisfied by a PEP 517 installer.
>         If you are using pip, you can try `pip install --use-pep517`.
>         ********************************************************************************
> 
> !!
>   ir_d = dist.fetch_build_eggs(dist.install_requires)
> WARNING: The wheel package is not available.
> /usr/lib/python3/dist-packages/setuptools/command/test.py:194: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
> !!
> 
>         ********************************************************************************
>         Requirements should be satisfied by a PEP 517 installer.
>         If you are using pip, you can try `pip install --use-pep517`.
>         ********************************************************************************
> 
> !!
>   tr_d = dist.fetch_build_eggs(dist.tests_require or [])
> WARNING: The wheel package is not available.
> /usr/lib/python3/dist-packages/setuptools/command/test.py:195: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
> !!
> 
>         ********************************************************************************
>         Requirements should be satisfied by a PEP 517 installer.
>         If you are using pip, you can try `pip install --use-pep517`.
>         ********************************************************************************
> 
> !!
>   er_d = dist.fetch_build_eggs(
> WARNING: The wheel package is not available.
> running egg_info
> writing liac_arff.egg-info/PKG-INFO
> writing dependency_links to liac_arff.egg-info/dependency_links.txt
> writing top-level names to liac_arff.egg-info/top_level.txt
> reading manifest file 'liac_arff.egg-info/SOURCES.txt'
> adding license file 'LICENSE'
> writing manifest file 'liac_arff.egg-info/SOURCES.txt'
> running build_ext
> test_encode_destiny (tests.test_dump_escape.TestDumpEscape.test_encode_destiny) ... ok
> test_encode_source (tests.test_dump_escape.TestDumpEscape.test_encode_source) ... ok
> test_decode (tests.test_decode.TestDecodeComment.test_decode) ... ok
> test_decode_dense_gen (tests.test_decode.TestDecodeComment.test_decode_dense_gen) ... ok
> test_decode_dense_gen_data_error (tests.test_decode.TestDecodeComment.test_decode_dense_gen_data_error) ... ok
> test_decode_lod_gen (tests.test_decode.TestDecodeComment.test_decode_lod_gen) ... ok
> test_decode_lod_gen_data_error (tests.test_decode.TestDecodeComment.test_decode_lod_gen_data_error) ... ok
> test_decode_with_label_encoding (tests.test_decode.TestDecodeComment.test_decode_with_label_encoding) ... ok
> test_decode_xor_sparse_coo (tests.test_decode.TestDecodeComment.test_decode_xor_sparse_coo) ... ok
> test_decode_xor_sparse_lod (tests.test_decode.TestDecodeComment.test_decode_xor_sparse_lod) ... ok
> test_invalid_data_len (tests.test_decode.TestDecodeComment.test_invalid_data_len)
> When there is more (or less) data then attributes. ... ok
> test_invalid_layout (tests.test_decode.TestDecodeComment.test_invalid_layout) ... ok
> test_decode (tests.test_decode.TestDuplicateAttributeName.test_decode) ... /<<PKGBUILDDIR>>/tests/test_decode.py:359: DeprecationWarning: Please use assertRaisesRegex instead.
>   with self.assertRaisesRegexp(arff.BadAttributeName,
> ok
> test_dense (tests.test_decode.TestInvalidValues.test_dense) ... ok
> test_sparse (tests.test_decode.TestInvalidValues.test_sparse) ... ok
> test_coo (tests.test_decode.TestTooManyAttributes.test_coo) ... ok
> test_dense (tests.test_decode.TestTooManyAttributes.test_dense) ... ok
> test_lod (tests.test_decode.TestTooManyAttributes.test_lod) ... ok
> test_conversor (tests.test_data.TestCOOData.test_conversor)
> Basic data instances. ... ok
> test_encode_scipy_coo_example (tests.test_data.TestCOOData.test_encode_scipy_coo_example) ... ok
> test_encode_too_many_attributes_coo (tests.test_data.TestCOOData.test_encode_too_many_attributes_coo) ... /<<PKGBUILDDIR>>/tests/test_data.py:206: DeprecationWarning: Please use assertRaisesRegex instead.
>   with self.assertRaisesRegexp(arff.BadObject,
> ok
> test_null_value (tests.test_data.TestCOOData.test_null_value) ... ok
> test_simple (tests.test_data.TestCOOData.test_simple) ... ok
> test_sparse (tests.test_data.TestCOOData.test_sparse)
> Basic data instances. ... ok
> test_sparse_matrix (tests.test_data.TestCOOData.test_sparse_matrix) ... ok
> test_conversor (tests.test_data.TestData.test_conversor)
> Basic data instances. ... ok
> test_encode_too_many_attributes_dense (tests.test_data.TestData.test_encode_too_many_attributes_dense) ... ok
> test_null_value (tests.test_data.TestData.test_null_value) ... ok
> test_simple (tests.test_data.TestData.test_simple) ... ok
> test_sparse (tests.test_data.TestData.test_sparse)
> Basic data instances. ... ok
> test_too_short (tests.test_data.TestData.test_too_short) ... ok
> test_conversor (tests.test_data.TestLODData.test_conversor)
> Basic data instances. ... ok
> test_encode_too_many_attributes_lod (tests.test_data.TestLODData.test_encode_too_many_attributes_lod) ... ok
> test_null_value (tests.test_data.TestLODData.test_null_value) ... ok
> test_simple (tests.test_data.TestLODData.test_simple) ... ok
> test_sparse (tests.test_data.TestLODData.test_sparse)
> Basic data instances. ... ok
> test_sparse_matrix (tests.test_data.TestLODData.test_sparse_matrix) ... ok
> test_simple (tests.test_encode_comment.TestEncodeComment.test_simple) ... ok
> test_bad_escapes (tests.test_decode_data.TestDecodeData.test_bad_escapes) ... ok
> test_bad_quotes (tests.test_decode_data.TestDecodeData.test_bad_quotes) ... ok
> test_bad_quotes_sparse (tests.test_decode_data.TestDecodeData.test_bad_quotes_sparse) ... ok
> test_escapes (tests.test_decode_data.TestDecodeData.test_escapes) ... ok
> test_escapes_sparse (tests.test_decode_data.TestDecodeData.test_escapes_sparse) ... ok
> test_internal_brace (tests.test_decode_data.TestDecodeData.test_internal_brace) ... ok
> test_multiple_values (tests.test_decode_data.TestDecodeData.test_multiple_values) ... ok
> test_multiple_values_sparse (tests.test_decode_data.TestDecodeData.test_multiple_values_sparse) ... ok
> test_quotes (tests.test_decode_data.TestDecodeData.test_quotes) ... ok
> test_quotes_sparse (tests.test_decode_data.TestDecodeData.test_quotes_sparse) ... ok
> test_simple (tests.test_dump.TestDump.test_simple) ... ok
> test_issue_69 (tests.test_loads_dumps.TestLoadDump.test_issue_69) ... ok
> test_simple (tests.test_loads_dumps.TestLoadDump.test_simple) ... ok
> test_encoded_nominal (tests.test_conversor.TestDecodeConversorCOO.test_encoded_nominal)
> Convert nominal to encoded nominal value. ... ok
> test_integer (tests.test_conversor.TestDecodeConversorCOO.test_integer)
> Convert real value. ... ok
> test_invalid_nominal_value (tests.test_conversor.TestDecodeConversorCOO.test_invalid_nominal_value)
> Invalid nominal value. ... ok
> test_invalid_numerical_value (tests.test_conversor.TestDecodeConversorCOO.test_invalid_numerical_value)
> Invalid numerical value. ... ok
> test_nominal (tests.test_conversor.TestDecodeConversorCOO.test_nominal)
> Convert nominal value. ... ok
> test_null_value (tests.test_conversor.TestDecodeConversorCOO.test_null_value)
> Values such as "?", or "". ... ok
> test_numeric (tests.test_conversor.TestDecodeConversorCOO.test_numeric)
> Convert real value. ... ok
> test_padding_value (tests.test_conversor.TestDecodeConversorCOO.test_padding_value)
> Values such "    3.1415   " ... ok
> test_real (tests.test_conversor.TestDecodeConversorCOO.test_real)
> Convert real value. ... ok
> test_string (tests.test_conversor.TestDecodeConversorCOO.test_string)
> Convert string value. ... ok
> test_encoded_nominal (tests.test_conversor.TestDecodeConversorDense.test_encoded_nominal)
> Convert nominal to encoded nominal value. ... ok
> test_integer (tests.test_conversor.TestDecodeConversorDense.test_integer)
> Convert real value. ... ok
> test_invalid_nominal_value (tests.test_conversor.TestDecodeConversorDense.test_invalid_nominal_value)
> Invalid nominal value. ... ok
> test_invalid_numerical_value (tests.test_conversor.TestDecodeConversorDense.test_invalid_numerical_value)
> Invalid numerical value. ... ok
> test_nominal (tests.test_conversor.TestDecodeConversorDense.test_nominal)
> Convert nominal value. ... ok
> test_null_value (tests.test_conversor.TestDecodeConversorDense.test_null_value)
> Values such as "?", or "". ... ok
> test_numeric (tests.test_conversor.TestDecodeConversorDense.test_numeric)
> Convert real value. ... ok
> test_padding_value (tests.test_conversor.TestDecodeConversorDense.test_padding_value)
> Values such "    3.1415   " ... ok
> test_real (tests.test_conversor.TestDecodeConversorDense.test_real)
> Convert real value. ... ok
> test_string (tests.test_conversor.TestDecodeConversorDense.test_string)
> Convert string value. ... ok
> test_encoded_nominal (tests.test_conversor.TestDecodeConversorLOD.test_encoded_nominal)
> Convert nominal to encoded nominal value. ... ok
> test_integer (tests.test_conversor.TestDecodeConversorLOD.test_integer)
> Convert real value. ... ok
> test_invalid_nominal_value (tests.test_conversor.TestDecodeConversorLOD.test_invalid_nominal_value)
> Invalid nominal value. ... ok
> test_invalid_numerical_value (tests.test_conversor.TestDecodeConversorLOD.test_invalid_numerical_value)
> Invalid numerical value. ... ok
> test_nominal (tests.test_conversor.TestDecodeConversorLOD.test_nominal)
> Convert nominal value. ... ok
> test_null_value (tests.test_conversor.TestDecodeConversorLOD.test_null_value)
> Values such as "?", or "". ... ok
> test_numeric (tests.test_conversor.TestDecodeConversorLOD.test_numeric)
> Convert real value. ... ok
> test_padding_value (tests.test_conversor.TestDecodeConversorLOD.test_padding_value)
> Values such "    3.1415   " ... ok
> test_real (tests.test_conversor.TestDecodeConversorLOD.test_real)
> Convert real value. ... ok
> test_string (tests.test_conversor.TestDecodeConversorLOD.test_string)
> Convert string value. ... ok
> test_encoded_nominal (tests.test_conversor.TestDecodeConversorSparseDense.test_encoded_nominal)
> Convert nominal to encoded nominal value. ... ok
> test_integer (tests.test_conversor.TestDecodeConversorSparseDense.test_integer)
> Convert real value. ... ok
> test_invalid_nominal_value (tests.test_conversor.TestDecodeConversorSparseDense.test_invalid_nominal_value)
> Invalid nominal value. ... ok
> test_invalid_numerical_value (tests.test_conversor.TestDecodeConversorSparseDense.test_invalid_numerical_value)
> Invalid numerical value. ... ok
> test_nominal (tests.test_conversor.TestDecodeConversorSparseDense.test_nominal)
> Convert nominal value. ... ok
> test_null_value (tests.test_conversor.TestDecodeConversorSparseDense.test_null_value)
> Values such as "?", or "". ... ok
> test_numeric (tests.test_conversor.TestDecodeConversorSparseDense.test_numeric)
> Convert real value. ... ok
> test_padding_value (tests.test_conversor.TestDecodeConversorSparseDense.test_padding_value)
> Values such "    3.1415   " ... ok
> test_real (tests.test_conversor.TestDecodeConversorSparseDense.test_real)
> Convert real value. ... ok
> test_string (tests.test_conversor.TestDecodeConversorSparseDense.test_string)
> Convert string value. ... ok
> test_simple (tests.test_load.TestLoad.test_simple) ... ok
> test_attribute_invalid_attribute_type (tests.test_encode.TestEncodeComment.test_attribute_invalid_attribute_type) ... ok
> test_encode (tests.test_encode.TestEncodeComment.test_encode) ... ok
> test_encode_adding_quotes_with_spaces (tests.test_encode.TestEncodeComment.test_encode_adding_quotes_with_spaces) ... ok
> test_encode_duplicate_attribute_name (tests.test_encode.TestEncodeComment.test_encode_duplicate_attribute_name) ... /<<PKGBUILDDIR>>/tests/test_encode.py:169: DeprecationWarning: Please use assertRaisesRegex instead.
>   with self.assertRaisesRegexp(arff.BadObject,
> ok
> test_encode_string (tests.test_encode.TestEncodeComment.test_encode_string) ... ok
> test_invalid_object (tests.test_encode.TestEncodeComment.test_invalid_object) ... ok
> test_invalid_object_attribute (tests.test_encode.TestEncodeComment.test_invalid_object_attribute) ... ok
> test_iter_encode (tests.test_encode.TestEncodeComment.test_iter_encode) ... ok
> test_integer (tests.test_decode_attribute_types.TestDecodeAttributeTypes.test_integer)
> Integer attributes. ... ok
> test_invalid_type (tests.test_decode_attribute_types.TestDecodeAttributeTypes.test_invalid_type)
> Invalid type name or structure. ... ok
> test_nominal (tests.test_decode_attribute_types.TestDecodeAttributeTypes.test_nominal)
> Nominal attributes. ... ok
> test_numeric (tests.test_decode_attribute_types.TestDecodeAttributeTypes.test_numeric)
> Numeric attributes. ... ok
> test_real (tests.test_decode_attribute_types.TestDecodeAttributeTypes.test_real)
> Real attributes. ... ok
> test_string (tests.test_decode_attribute_types.TestDecodeAttributeTypes.test_string)
> String attributes. ... ok
> test_simple (tests.test_dumps.TestDumps.test_simple) ... ok
> test_simple (tests.test_dumps_escape.TestDumps.test_simple) ... ok
> test_attribute_integer (tests.test_encode_attribute.TestEncodeAttribute.test_attribute_integer) ... ok
> test_attribute_name (tests.test_encode_attribute.TestEncodeAttribute.test_attribute_name) ... ok
> test_attribute_name_special (tests.test_encode_attribute.TestEncodeAttribute.test_attribute_name_special) ... ok
> test_attribute_nominal (tests.test_encode_attribute.TestEncodeAttribute.test_attribute_nominal) ... ok
> test_attribute_nominal_spaced (tests.test_encode_attribute.TestEncodeAttribute.test_attribute_nominal_spaced) ... ok
> test_attribute_numeric (tests.test_encode_attribute.TestEncodeAttribute.test_attribute_numeric) ... ok
> test_attribute_real (tests.test_encode_attribute.TestEncodeAttribute.test_attribute_real) ... ok
> test_attribute_string (tests.test_encode_attribute.TestEncodeAttribute.test_attribute_string) ... ok
> test_invalid_characters (tests.test_decode_attribute.TestDecodeAttribute.test_invalid_characters)
> Attributes with bad format. ... ok
> test_invalid_format (tests.test_decode_attribute.TestDecodeAttribute.test_invalid_format)
> Attributes with bad format. ... ok
> test_numeric_name (tests.test_decode_attribute.TestDecodeAttribute.test_numeric_name)
> Attributes with quoted name but without space. ... ok
> test_padding (tests.test_decode_attribute.TestDecodeAttribute.test_padding)
> Attributes with spaces between attribute declaration and name, and ... ok
> test_quoted (tests.test_decode_attribute.TestDecodeAttribute.test_quoted)
> Attributes with quoted name but without space. ... ok
> test_quoted_space (tests.test_decode_attribute.TestDecodeAttribute.test_quoted_space)
> Attributes with quoted name and space. ... ok
> test_quoted_special (tests.test_decode_attribute.TestDecodeAttribute.test_quoted_special)
> Attributes with quoted name but without space. ... ok
> test_espaced (tests.test_encode_relation.TestEncodeRelation.test_espaced)
> Relation name with spaces. ... ok
> test_simple (tests.test_encode_relation.TestEncodeRelation.test_simple)
> Relation name without spaces. ... ok
> test_special (tests.test_encode_relation.TestEncodeRelation.test_special)
> Relation name with spaces. ... ok
> test_format_correct (tests.test_loads.TestLoads.test_format_correct) ... ok
> test_format_error_attribute (tests.test_loads.TestLoads.test_format_error_attribute) ... ok
> test_format_error_relation (tests.test_loads.TestLoads.test_format_error_relation) ... ok
> test_quoted_null (tests.test_loads.TestLoads.test_quoted_null) ... ok
> test_simple (tests.test_loads.TestLoads.test_simple) ... ok
> test_sparse_input (tests.test_loads.TestLoads.test_sparse_input) ... ok
> test_padding (tests.test_decode_comment.TestDecodeComment.test_padding)
> Comments with space padding right after the % character. ... ok
> test_simple (tests.test_decode_comment.TestDecodeComment.test_simple)
> Comments without any space padding or special characters. ... ok
> test_invalid_characters (tests.test_decode_relation.TestDecodeRelation.test_invalid_characters)
> Relation names with spaces and without quotes. ... ok
> test_invalid_spaces (tests.test_decode_relation.TestDecodeRelation.test_invalid_spaces)
> Relation names with spaces and without quotes. ... ok
> test_padding (tests.test_decode_relation.TestDecodeRelation.test_padding)
> Relation names with padding between @RELATION and the value. ... ok
> test_quotes (tests.test_decode_relation.TestDecodeRelation.test_quotes)
> Quoted relation names and without space in the name. ... ok
> test_quotes_and_special (tests.test_decode_relation.TestDecodeRelation.test_quotes_and_special)
> Quoted relation names and without space in the name. ... ok
> test_simple (tests.test_decode_relation.TestDecodeRelation.test_simple)
> Relation names without spaces. ... ok
> test_spaces (tests.test_decode_relation.TestDecodeRelation.test_spaces)
> Quoted relation names with spaces in the name. ... ok
> 
> ----------------------------------------------------------------------
> Ran 141 tests in 0.031s
> 
> OK
> dh_auto_test: error: pybuild --test -i python{version} -p "3.12 3.11" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/12/12/liac-arff_2.5.0-4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the debian-science-maintainers mailing list