Bug#1061747: liac-arff ftbfs with Python 3.12 as default

Matthias Klose doko at debian.org
Mon Jan 29 11:43:17 GMT 2024


Package: src:liac-arff
Version: 2.5.0-4
Severity: serious
Tags: sid trixie ftbfs
User: debian-python at lists.debian.org
Usertags: python3.12

With python3-defaults from experimental, the package fails to build:

[...]
======================================================================
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'?

======================================================================
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'?

----------------------------------------------------------------------
Ran 141 tests in 0.040s

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>



More information about the debian-science-maintainers mailing list