With bug 1678663 [1] now on central, web-platform-tests uses Python 3, both locally under mach, and on Gecko CI. This matches upstream, where the CI switched over a few weeks ago [2] and Google's CI which switched at the end of last week.

For most users this change should be entirely transparent. It is however relevant relevant to anyone writing a custom Python handler as part of their tests:

* All python handlers must run under Python 3.6+ as well as Python 2.7 *

The requirement to maintain 2.7 compatibility is temporary to give all wpt consumers a chance to migrate. The detailed timetable for the next steps is as follows [3]:

* Jan 1st 2021, wpt consumers are expected to be using Python 3
* Feb 1st 2021, Python 2 no longer supported

Thanks for all the people who worked on this transition, and particular thanks to Google/Igalia who took on the Sisyphean task of migrating all the existing handler functions through the bytes/string changes without altering the test behaviour. Unsurprisingly we have a lot of tests which are very sensitive to the exact bytes sent over the wire, so this was a big deal to get right.

As always please file bugs, or contact me on matrix [4] if you run into any bugs as a result of these changes.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1678663
[2] https://github.com/web-platform-tests/wpt/pull/26252
[3] https://github.com/web-platform-tests/rfcs/blob/master/rfcs/py_3.md
[4] https://chat.mozilla.org/#/room/#interop:mozilla.org
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to