Closed ArthurSonzogni closed 3 years ago
@jgraham how do you think we should deal Python 3.9? Should we add it to the various tox.ini
so that it can be tested locally? Should we also use 3.9 in CI by default, relegating 3.8 to the same untested-but-probably-working status as 3.7?
Thanks @ArthurSonzogni for digging into that error. Looks like for element in parsed.iter()
should be the fix if the docs are correct. I'll try that in https://github.com/web-platform-tests/wpt/pull/28713.
Thanks @foolip !
This can be closed, fixed by: https://github.com/web-platform-tests/wpt/commit/ebc9eba1663d7c556cf82b8275fb52b527a78f67
(PS: I have very little knowledge about python)
I have issues running the internal tests from:
resources/tests
.I was using
python2.7
and it was working fine. Then incompatibles changes were introduced and then support forpy27
removed.tox
is now configured to run onpy36
andpy38
only. However on glinux, I get the error:This is because glinux moved from
python 3.8
towardpython 3.9
(recently ~3 weeks ago). You can still installpython3.8
but the packagepython3-distutils
for 3.9 is now breaking 3.8.See: https://yaqs.corp.google.com/eng/q/1466141581034651648 See: https://yaqs.corp.google.com/eng/q/5091265084522496
As a result, it is not possible on glinux to run WPT internal tests anymore.
Maybe we should add support for
py39
? This would fix the problem. I tried runningtox
withpy39
, but this doesn't work as-is, due to a deprecated function in3.2
removed in3.9
https://github.com/jbarlow83/OCRmyPDF/issues/583cc @web-platform-tests/wpt-core-team