Bug 2488374 - python-werkzeug fails to build with Python 3.15: test_wrong_protocol: assert "Traceback" not in standard_app.read_log()
Summary: python-werkzeug fails to build with Python 3.15: test_wrong_protocol: assert ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-werkzeug
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: František Zatloukal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15 F45FTBFS, RAWHIDEFTBFS
TreeView+ depends on / blocked
 
Reported: 2026-06-12 14:55 UTC by Karolina Surma
Modified: 2026-06-12 14:55 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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