Closed Bug 2087658 Opened 1 month ago Closed 18 days ago

[wpt-sync] Sync PR 64027 - pywebsocket3: work on Python 3.15

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox162 fixed)

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 64027 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/64027
Details from upstream follow.

Timothy Nikkel <tnikkel@gmail.com> wrote:

pywebsocket3: work on Python 3.15

Python 3.15 removed http.server.CGIHTTPRequestHandler. WebSocketRequestHandler
subclasses it, so importing pywebsocket3 fails and wpt serve can't start.

wpt doesn't use pywebsocket3's CGI support, so subclass
SimpleHTTPRequestHandler instead, on every Python version so that CI runs the
same code as 3.15. Passing CGI paths to standalone.py now exits with an error.

This isn't fixed upstream yet (GoogleChromeLabs/pywebsocket3#49), so like the
Python 3.12 fix in #45929 it's a change to the vendored copy.

Tested on Python 3.15 by running websockets/ in Firefox, no unexpected results.

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues

Test result changes from PR not available.

Status: NEW → RESOLVED
Closed: 18 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.