During the build in Debian the tests test_assert_redirects and test_assert_redirects_valid_status_codes fail. Fail using Python3.11 and Flask 2.2.2.
You can see the error here:
flask-testing.log
Originally report here [0]
[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026543