Bug 246806 - [WebDriver] Update W3C webdriver tests for python 3.10 compatibility
Summary: [WebDriver] Update W3C webdriver tests for python 3.10 compatibility
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Lauro Moura
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-10-20 07:47 PDT by Lauro Moura
Modified: 2022-10-20 19:37 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lauro Moura 2022-10-20 07:47:02 PDT
Since 255085@main, the Flatpak SDK ships with Python 3.10. This version removed[1] some aliases for classes like `collections.Iterable` and `collections.Mapping` (which actually living inside `collections.abc`).

The w3c webdriver test suite uses then in a couple of helper scripts. This makes some tests to pass normally but fail the teardown step.

This was fixed in the webdriver test suite in this commit from Nov 2021: https://github.com/web-platform-tests/wpt/commit/1a0256c677df9e111281b32a8af347ae225e8636

[1] https://github.com/python/cpython/commit/c47c78b878ff617164b2b94ff711a6103e781753
Comment 1 Lauro Moura 2022-10-20 18:21:34 PDT
Pull request: https://github.com/WebKit/WebKit/pull/5612
Comment 2 EWS 2022-10-20 19:36:56 PDT
Committed 255813@main (da4f8f1aad4c): <https://commits.webkit.org/255813@main>

Reviewed commits have been landed. Closing PR #5612 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-10-20 19:37:18 PDT
<rdar://problem/101410181>