Source: listparser Version: 0.18-3 Severity: serious Tags: sid trixie X-Debbugs-Cc: y...@debian.org User: debian-pyt...@lists.debian.org Usertags: python3.12
Dear Maintainer, listparser autopkgtests fail with Python 3.12 [0]. [0] https://ci.debian.net/packages/l/listparser/testing/arm64/ autopkgtest [23:35:58]: test command1: [----------------------- /tmp/autopkgtest.jZHSp5/tree/lptest.py:174: SyntaxWarning: invalid escape sequence '\:' testBogusFilename = _bad_test('totally made up and bogus /\:') /tmp/autopkgtest.jZHSp5/tree/lptest.py:401: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead server.setDaemon(True) EEEE.EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE..........................................................EETraceback (most recent call last): File "/usr/lib/python3.12/urllib/request.py", line 1344, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/usr/lib/python3.12/http/client.py", line 1336, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.12/http/client.py", line 1382, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.12/http/client.py", line 1331, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.12/http/client.py", line 1091, in _send_output self.send(msg) File "/usr/lib/python3.12/http/client.py", line 1035, in send self.connect() File "/usr/lib/python3.12/http/client.py", line 1001, in connect self.sock = self._create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/socket.py", line 829, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/socket.py", line 964, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ socket.gaierror: [Errno -2] Name or service not known During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/autopkgtest.OkgtBD/tree/lptest.py", line 413, in <module> File "/usr/lib/python3.12/unittest/runner.py", line 240, in run test(result) File "/usr/lib/python3.12/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/unittest/suite.py", line 122, in run test(result) File "/usr/lib/python3.12/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/unittest/suite.py", line 122, in run test(result) File "/usr/lib/python3.12/unittest/case.py", line 690, in __call__ return self.run(*args, **kwds) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/unittest/case.py", line 634, in run self._callTestMethod(testMethod) File "/usr/lib/python3.12/unittest/case.py", line 589, in _callTestMethod if method() is not None: ^^^^^^^^ File "/tmp/autopkgtest.OkgtBD/tree/lptest.py", line 167, in fn File "/tmp/autopkgtest.OkgtBD/tree/listparser.py", line 521, in _mkfile ret = opener.open(request) ^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/urllib/request.py", line 1347, in do_open raise URLError(err) ^^^^^^^^^^^^^ File "/usr/lib/python3.12/urllib/error.py", line 25, in __init__ def __init__(self, reason, filename=None): KeyboardInterrupt ç√EEEEEE ====================================================================== ERROR: testImage (__main__.TestCases.testImage) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.jZHSp5/tree/lptest.py", line 153, in testImage self.assert_(result.bozo == 1) ^^^^^^^^^^^^ AttributeError: 'TestCases' object has no attribute 'assert_'. Did you mean: 'assertIn'? ====================================================================== ERROR: testUserAgentCustomArg (__main__.TestCases.testUserAgentCustomArg) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.jZHSp5/tree/lptest.py", line 141, in testUserAgentCustomArg self.assert_(result.headers.get('x-agent') == "CustomAgent") ^^^^^^^^^^^^ AttributeError: 'TestCases' object has no attribute 'assert_'. Did you mean: 'assertIn'? ====================================================================== ERROR: testUserAgentDefault (__main__.TestCases.testUserAgentDefault) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.jZHSp5/tree/lptest.py", line 136, in testUserAgentDefault self.assert_(result.headers.get('x-agent') == listparser.USER_AGENT) ^^^^^^^^^^^^ AttributeError: 'TestCases' object has no attribute 'assert_'. Did you mean: 'assertIn'? ====================================================================== ERROR: testUserAgentGlobalOverride (__main__.TestCases.testUserAgentGlobalOverride) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.jZHSp5/tree/lptest.py", line 149, in testUserAgentGlobalOverride self.assert_(result.headers.get('x-agent') == "NewGlobalAgent") ^^^^^^^^^^^^ AttributeError: 'TestCases' object has no attribute 'assert_'. Did you mean: 'assertIn'? ====================================================================== ERROR: test_bad_bytes-00ff (__main__.TestCases.test_bad_bytes-00ff) bad_bytes-00ff.xml: Bad bytes (00ff) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.jZHSp5/tree/lptest.py", line 348, in <lambda> return lambda self: self.worker(evals, testfile, etag, modified) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/autopkgtest.jZHSp5/tree/lptest.py", line 161, in worker self.assert_(eval(ev)) ^^^^^^^^^^^^ AttributeError: 'TestCases' object has no attribute 'assert_'. Did you mean: 'assertIn'? ====================================================================== ERROR: test_http/http-bad_last_modified (__main__.TestCases.test_http/http-bad_last_modified) http/http-bad_last_modified.xml: Bad HTTP Last-Modified ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.jZHSp5/tree/lptest.py", line 348, in <lambda> return lambda self: self.worker(evals, testfile, etag, modified) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/autopkgtest.jZHSp5/tree/lptest.py", line 161, in worker self.assert_(eval(ev)) ^^^^^^^^^^^^ AttributeError: 'TestCases' object has no attribute 'assert_'. Did you mean: 'assertIn'?