Bug 2488374

Summary: python-werkzeug fails to build with Python 3.15: test_wrong_protocol: assert "Traceback" not in standard_app.read_log()
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-werkzeugAssignee: FrantiĊĦek Zatloukal <fzatlouk>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: aurelien, epel-packagers-sig, fzatlouk, jonathan, python-packagers-sig, tdawson, thrcka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
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 Karolina Surma 2026-06-12 14:55:07 UTC
python-werkzeug fails to build with Python 3.15.0b2.

_____________________________ test_wrong_protocol ______________________________
standard_app = <conftest.DevServerClient object at 0x7fccbe9a0ef0>
    @pytest.mark.dev_server
    def test_wrong_protocol(standard_app: DevServerClient) -> None:
        """An HTTPS request to an HTTP server doesn't show a traceback.
        https://github.com/pallets/werkzeug/pull/838
        """
        conn = http.client.HTTPSConnection(standard_app.addr)
    
        with pytest.raises(ssl.SSLError):
            conn.request("GET", f"https://{standard_app.addr}")
    
>       assert "Traceback" not in standard_app.read_log()
E       assert 'Traceback' not in 'Error in im...[0m" 400 -\n'
E         
E         'Traceback' is contained here:
E           pend(p)
E             Traceback (most recent call last):
E         ?   +++++++++
E               File "<frozen site>", line 533, in _exec_imports
E               File "<string>", line 1, in <module>...
E         
E         ...Full output truncated (7 lines hidden), use '-vv' to show
tests/test_serving.py:221: AssertionError

https://docs.python.org/3.15/whatsnew/3.15.html

For our attempts to build python-werkzeug with Python 3.15, see:
https://koji.fedoraproject.org/koji/search?terms=python-werkzeug&type=package&match=exact

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
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.