https://bugzilla.redhat.com/show_bug.cgi?id=2275074
Bug ID: 2275074 Summary: python-flask fails to build with Python 3.13: test_no_escaping: AssertionError: b'<p>Hello World!' != b'<p>Hello World!' Product: Fedora Version: rawhide Status: NEW Component: python-flask Assignee: fzatlouk@redhat.com Reporter: ksurma@redhat.com QA Contact: extras-qa@fedoraproject.org CC: epel-packagers-sig@lists.fedoraproject.org, fzatlouk@redhat.com, hushan.jia@gmail.com, karlthered@gmail.com, ksurma@redhat.com, mhroncok@redhat.com, patrick@puiterwijk.org, python-packagers-sig@lists.fedoraproject.org, tdawson@redhat.com, tflink@redhat.com Blocks: 2244836 (PYTHON3.13) Target Milestone: --- Classification: Fedora
python-flask fails to build with Python 3.13.0a6.
=================================== FAILURES =================================== _______________________________ test_no_escaping _______________________________
app = <Flask 'flask_test'>, client = <FlaskClient <Flask 'flask_test'>>
def test_no_escaping(app, client): text = "<p>Hello World!"
@app.route("/") def index(): return flask.render_template( "non_escaping_template.txt", text=text, html=Markup(text) )
lines = client.get("/").data.splitlines()
assert lines == [
b"<p>Hello World!", b"<p>Hello World!", b"<p>Hello World!", b"<p>Hello World!", b"<p>Hello World!", b"<p>Hello World!", b"<p>Hello World!", b"<p>Hello World!", ] E AssertionError: assert [b'<p>Hello W... World!', ...] == [b'<p>Hello W... World!', ...] E At index 6 diff: b'<p>Hello World!' != b'<p>Hello World!' E Use -v to get more diff
tests/test_templating.py:101: AssertionError =========================== short test summary info ============================ FAILED tests/test_templating.py::test_no_escaping - AssertionError: assert [b... =================== 1 failed, 481 passed, 2 skipped in 1.43s ===================
https://docs.python.org/3.13/whatsnew/3.13.html
For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-ra...
For all our attempts to build python-flask with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-f...
Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.13: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/
Let us know here if you have any questions.
Python 3.13 is planned to be included in Fedora 41. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2244836 [Bug 2244836] Python 3.13
https://bugzilla.redhat.com/show_bug.cgi?id=2275074
František Zatloukal fzatlouk@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |NOTABUG Last Closed| |2024-05-30 09:06:10
--- Comment #1 from František Zatloukal fzatlouk@redhat.com --- It seems the flask builds are passing just fine with python 3.13 as per: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-f...
It probably got resolved by a newer 3.13 snapshot and/or update of some library required for flask tests.
Closing, feel free to reopen if the issue occurs again.
epel-packagers-sig@lists.fedoraproject.org