We only actually run webkitpy tests in CI on macOS Big Sur, and we only run these with Python 2.7 + Python 3.8, and there's enough platform-specific code in webkitpy that it's unsurprising that some tests fail.
Created attachment 427283 [details] Patch
Comment on attachment 427283 [details] Patch Looks good, although I don't have a Linux machine to test on handy.
Committed r276762 (237151@main): <https://commits.webkit.org/237151@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 427283 [details].
<rdar://problem/77311316>