Package: src:advocate
Version: 1.0.0-4
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12

advocate's autopkg tests fail with Python 3.12:

s/assertRegexpMatches/assertRegexMatches/

and probably more

[...]
138s =================================== FAILURES =================================== 138s ___________ AdvocateWrapperTests.test_advocate_requests_api_wrapper ____________
138s
138s self = <test.test_advocate.AdvocateWrapperTests testMethod=test_advocate_requests_api_wrapper>
138s
138s     def test_advocate_requests_api_wrapper(self):
138s         wrapper = RequestsAPIWrapper(validator=AddrValidator())
138s         local_validator = AddrValidator(ip_whitelist={
138s             ipaddress.ip_network("127.0.0.1"),
138s         })
138s         local_wrapper = RequestsAPIWrapper(validator=local_validator)
138s
138s         self.assertRaises(
138s             UnacceptableAddressException,
138s             wrapper.get, "http://127.0.0.1:1/";
138s         )
138s
138s         with self.assertRaises(Exception) as cm:
138s             local_wrapper.get("http://127.0.0.1:1/";)
138s # Check that we got a connection exception instead of a validation one 138s # This might be either exception depending on the requests version
138s >       self.assertRegexpMatches(
138s             cm.exception.__class__.__name__,
138s             r"\A(Connection|Protocol)Error",
138s         )
138s E AttributeError: 'AdvocateWrapperTests' object has no attribute 'assertRegexpMatches'
138s
138s test/test_advocate.py:504: AttributeError
138s =========================== short test summary info ============================ 138s FAILED test/test_advocate.py::AdvocateWrapperTests::test_advocate_requests_api_wrapper 138s !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!! 138s =================== 1 failed, 21 passed, 9 skipped in 0.10s ====================

Reply via email to