Package: src:python-ocspbuilder
Version: 0.10.2-2
Severity: important
Tags: sid trixie
User: [email protected]
Usertags: python3.12
python-ocspbuilder's autopkg tests fail with Python 3.12:
[...]
337s ============================= test session starts
==============================
337s platform linux -- Python 3.12.0+, pytest-7.4.3, pluggy-1.3.0
337s rootdir: /tmp/autopkgtest.OWWyB9/autopkgtest_tmp
337s collected 9 items
337s
337s tests/test_ocsp_request_builder.py ..
[ 22%]
337s tests/test_ocsp_response_builder.py ...F...
[100%]
337s
337s =================================== FAILURES
===================================
337s ______________ OCSPResponseBuilderTests.test_build_no_certificate
______________
337s
337s self = <tests.test_ocsp_response_builder.OCSPResponseBuilderTests
testMethod=test_build_no_certificate>
337s
337s def test_build_no_certificate(self):
337s issuer_key =
asymmetric.load_private_key(os.path.join(fixtures_dir, 'test.key'))
337s issuer_cert =
asymmetric.load_certificate(os.path.join(fixtures_dir, 'test.crt'))
337s subject_cert =
asymmetric.load_certificate(os.path.join(fixtures_dir, 'test-inter.crt'))
337s
337s > with self.assertRaisesRegexp(ValueError, 'must be set if
the response_status is "successful"'):
337s E AttributeError: 'OCSPResponseBuilderTests' object has no
attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
337s
337s tests/test_ocsp_response_builder.py:65: AttributeError
337s =========================== short test summary info
============================
337s FAILED
tests/test_ocsp_response_builder.py::OCSPResponseBuilderTests::test_build_no_certificate
337s ========================= 1 failed, 8 passed in 0.12s
==========================