This test broke with flask>2.2.0 and the project is otherwise unmaintained, so this is a best-effort fix.