Package: src:python-tornado
Version: 6.3.2-1
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12

python-tornado autopkg tests fail with Python 3.12:

complete test log at
https://autopkgtest.ubuntu.com/results/autopkgtest-noble/noble/amd64/p/python-tornado/20231118_185250_7d261@/log.gz


[...]
198s autopkgtest [18:52:21]: test python3: [-----------------------
199s === python3.12 ===
199s /usr/lib/python3/dist-packages/tornado/test/runtests.py:168: SyntaxWarning: invalid escape sequence '\.'
199s   message="ssl\.PROTOCOL_TLS is deprecated")
199s /usr/lib/python3/dist-packages/tornado/test/runtests.py:171: SyntaxWarning: invalid escape sequence '\.'
199s   message="ssl\.wrap_socket\(\) is deprecated, .*")
199s /usr/lib/python3/dist-packages/tornado/test/runtests.py:174: SyntaxWarning: invalid escape sequence '\.'
199s   message="ssl\.OP_NO_SSL\*/ssl\.OP_NO_TLS\* options are deprecated")
199s HTTPHeaders (tornado.httputil)
199s Doctest: tornado.httputil.HTTPHeaders ... ok
199s parse (tornado.httputil.HTTPHeaders)
199s Doctest: tornado.httputil.HTTPHeaders.parse ... ok
199s parse_line (tornado.httputil.HTTPHeaders)
199s Doctest: tornado.httputil.HTTPHeaders.parse_line ... ok
199s _encode_header (tornado.httputil)
199s Doctest: tornado.httputil._encode_header ... ok
199s _get_content_range (tornado.httputil)
199s Doctest: tornado.httputil._get_content_range ... ok
199s _normalize_header (tornado.httputil)
199s Doctest: tornado.httputil._normalize_header ... ok
199s _parse_header (tornado.httputil)
199s Doctest: tornado.httputil._parse_header ... ok
199s _parse_request_range (tornado.httputil)
199s Doctest: tornado.httputil._parse_request_range ... ok
199s format_timestamp (tornado.httputil)
199s Doctest: tornado.httputil.format_timestamp ... ok
199s parse_request_start_line (tornado.httputil)
199s Doctest: tornado.httputil.parse_request_start_line ... ok
199s parse_response_start_line (tornado.httputil)
199s Doctest: tornado.httputil.parse_response_start_line ... ok
199s url_concat (tornado.httputil)
199s Doctest: tornado.httputil.url_concat ... ok
199s import_object (tornado.util)
199s Doctest: tornado.util.import_object ... ok
199s test_asyncio_accessor (tornado.test.asyncio_test.AnyThreadEventLoopPolicyTest.test_asyncio_accessor) ... ok 199s test_tornado_accessor (tornado.test.asyncio_test.AnyThreadEventLoopPolicyTest.test_tornado_accessor) ... ok 199s test_asyncio_adapter (tornado.test.asyncio_test.AsyncIOLoopTest.test_asyncio_adapter) ... ok 199s test_asyncio_callback (tornado.test.asyncio_test.AsyncIOLoopTest.test_asyncio_callback) ... ok 199s test_asyncio_future (tornado.test.asyncio_test.AsyncIOLoopTest.test_asyncio_future) ... ok 199s test_asyncio_yield_from (tornado.test.asyncio_test.AsyncIOLoopTest.test_asyncio_yield_from) ... ok 199s test_asyncio_close_leak (tornado.test.asyncio_test.LeakTest.test_asyncio_close_leak) ... ok 199s test_ioloop_close_leak (tornado.test.asyncio_test.LeakTest.test_ioloop_close_leak) ... ok 199s test_facebook_login (tornado.test.auth_test.AuthTest.test_facebook_login) ... ok 199s test_oauth10_get_user (tornado.test.auth_test.AuthTest.test_oauth10_get_user) ... [E 231118 18:52:22 web:1871] Uncaught exception GET /oauth10/client/login?oauth_token=zxcv (127.0.0.1) 199s HTTPServerRequest(protocol='http', host='127.0.0.1:35711', method='GET', uri='/oauth10/client/login?oauth_token=zxcv', version='HTTP/1.1', remote_ip='127.0.0.1')
199s     Traceback (most recent call last):
199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1786, in _execute
199s         result = await result
199s                  ^^^^^^^^^^^^
199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 780, in run
199s         yielded = self.gen.throw(exc)
199s                   ^^^^^^^^^^^^^^^^^^^
199s File "/usr/lib/python3/dist-packages/tornado/test/auth_test.py", line 68, in get
199s         user = yield self.get_authenticated_user(
199s                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 767, in run
199s         value = future.result()
199s                 ^^^^^^^^^^^^^^^
199s File "/usr/lib/python3/dist-packages/tornado/auth.py", line 363, in get_authenticated_user
199s         handler.clear_cookie("_oauth_request_token")
199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 701, in clear_cookie 199s expires = datetime.datetime.utcnow() - datetime.timedelta(days=365)
199s                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
199s DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
199s ERROR
199s test_oauth10_redirect (tornado.test.auth_test.AuthTest.test_oauth10_redirect) ... ok 199s test_oauth10_request_parameters (tornado.test.auth_test.AuthTest.test_oauth10_request_parameters) ... ok 199s test_oauth10a_get_user (tornado.test.auth_test.AuthTest.test_oauth10a_get_user) ... [E 231118 18:52:22 web:1871] Uncaught exception GET /oauth10a/client/login?oauth_token=zxcv (127.0.0.1) 199s HTTPServerRequest(protocol='http', host='127.0.0.1:33527', method='GET', uri='/oauth10a/client/login?oauth_token=zxcv', version='HTTP/1.1', remote_ip='127.0.0.1')
199s     Traceback (most recent call last):
199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1786, in _execute
199s         result = await result
199s                  ^^^^^^^^^^^^
199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 780, in run
199s         yielded = self.gen.throw(exc)
199s                   ^^^^^^^^^^^^^^^^^^^
199s File "/usr/lib/python3/dist-packages/tornado/test/auth_test.py", line 68, in get
199s         user = yield self.get_authenticated_user(
199s                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 767, in run
199s         value = future.result()
199s                 ^^^^^^^^^^^^^^^
199s File "/usr/lib/python3/dist-packages/tornado/auth.py", line 363, in get_authenticated_user
199s         handler.clear_cookie("_oauth_request_token")
199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 701, in clear_cookie 199s expires = datetime.datetime.utcnow() - datetime.timedelta(days=365)
199s                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
199s DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
199s ERROR

Reply via email to