Bug 2480153 - python-flask: FTBFS in Fedora Rawhide: test_bad_environ_raises_bad_request fails
Summary: python-flask: FTBFS in Fedora Rawhide: test_bad_environ_raises_bad_request fails
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-flask
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Tomáš Hrnčiar
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: PYTHON3.15 F45FTBFS, RAWHIDEFTBFS
TreeView+ depends on / blocked
 
Reported: 2026-05-20 12:38 UTC by Miro Hrončok
Modified: 2026-05-25 22:11 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-05-25 22:11:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2026-05-20 12:38:47 UTC
Description of problem:
Package python-flask fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
3.1.3-2.fc45

Steps to Reproduce:
fedpkg build

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/python-flask



=================================== FAILURES ===================================
_____________________ test_bad_environ_raises_bad_request ______________________
    def test_bad_environ_raises_bad_request():
        app = flask.Flask(__name__)
    
        from flask.testing import EnvironBuilder
    
        builder = EnvironBuilder(app)
        environ = builder.get_environ()
    
        # use a non-printable character in the Host - this is key to this test
        environ["HTTP_HOST"] = "\x8a"
    
        with app.request_context(environ):
            response = app.full_dispatch_request()
>       assert response.status_code == 400
E       assert 404 == 400
E        +  where 404 = <Response streamed [404 NOT FOUND]>.status_code
tests/test_reqctx.py:293: AssertionError

Reproducible: Always

Comment 1 Miro Hrončok 2026-05-20 12:39:57 UTC
My best guess is that this has started with python3-werkzeug update from 3.1.6 to 3.1.8.

Comment 2 Tomáš Hrnčiar 2026-05-25 08:28:09 UTC
PR: https://src.fedoraproject.org/rpms/python-flask/pull-request/19


Note You need to log in before you can comment on or make changes to this bug.