Bug 2480153

Summary: python-flask: FTBFS in Fedora Rawhide: test_bad_environ_raises_bad_request fails
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-flaskAssignee: Tomáš Hrnčiar <thrnciar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: fzatlouk, hushan.jia, python-packagers-sig, tdawson, tflink, thrcka, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://koschei.fedoraproject.org/package/python-flask
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-05-25 22:11:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2412434, 2433833    

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