Package: src:flask
Version: 2.2.5-1
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12
flask's autopkg tests fail with Python 3.12:
[...]
281s -=-=-=-=-=-=-=- running tests for python3.12 -=-=-=-=-=-=-=-=-
281s $ python3.12 -m pytest -k "not test_main_module_paths" tests
282s ============================= test session starts
==============================
282s platform linux -- Python 3.12.0+, pytest-7.4.3, pluggy-1.3.0
282s rootdir: /tmp/autopkgtest.UCcMIG/autopkgtest_tmp
282s collected 483 items
282s
282s tests/test_appctx.py ..............
[ 2%]
282s tests/test_async.py ........
[ 4%]
282s tests/test_basic.py
.................................................... [ 15%]
282s
........................................................................
[ 30%]
282s .......F.
[ 32%]
283s tests/test_blueprints.py
............................................... [ 41%]
283s ..........
[ 43%]
283s tests/test_cli.py
...................................................... [ 55%]
283s .
[ 55%]
283s tests/test_config.py ..................
[ 59%]
283s tests/test_converters.py ..
[ 59%]
283s tests/test_helpers.py ...............................
[ 65%]
283s tests/test_instance_config.py ...........
[ 68%]
284s tests/test_json.py ...............................
[ 74%]
284s tests/test_json_tag.py ..............
[ 77%]
284s tests/test_logging.py ......
[ 78%]
284s tests/test_regression.py .
[ 78%]
284s tests/test_reqctx.py .......ss.....
[ 81%]
284s tests/test_session_interface.py .
[ 81%]
284s tests/test_signals.py .......
[ 83%]
284s tests/test_subclassing.py .
[ 83%]
284s tests/test_templating.py ................................
[ 90%]
284s tests/test_testing.py .........................
[ 95%]
284s tests/test_user_error_handler.py .........
[ 97%]
284s tests/test_views.py .............
[100%]
284s
284s =================================== FAILURES
===================================
284s _____________________________ test_max_cookie_size
_____________________________
284s
284s app = <Flask 'flask_test'>, client = <FlaskClient <Flask 'flask_test'>>
284s recwarn = WarningsRecorder(record=True)
284s
284s def test_max_cookie_size(app, client, recwarn):
284s app.config["MAX_COOKIE_SIZE"] = 100
284s
284s # outside app context, default to Werkzeug static value,
284s # which is also the default config
284s response = flask.Response()
284s default = flask.Flask.default_config["MAX_COOKIE_SIZE"]
284s assert response.max_cookie_size == default
284s
284s # inside app context, use app config
284s with app.app_context():
284s assert flask.Response().max_cookie_size == 100
284s
284s @app.route("/")
284s def index():
284s r = flask.Response("", status=204)
284s r.set_cookie("foo", "bar" * 100)
284s return r
284s
284s client.get("/")
284s > assert len(recwarn) == 1
284s E assert 4 == 1
284s E + where 4 = len(WarningsRecorder(record=True))
284s
284s tests/test_basic.py:1962: AssertionError