| Summary: | KeyError: '__spec__' in apipkg.py with Python v3.11 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Fujii Hironori <Hironori.Fujii> | ||||||
| Component: | Tools / Tests | Assignee: | Fujii Hironori <Hironori.Fujii> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | don.olmstead, ews-watchlist, glenn, jbedard, lmoura, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=253572 | ||||||||
| Attachments: |
|
||||||||
|
Description
Fujii Hironori
2022-12-18 17:07:13 PST
This problem was fixed by upstream. AttributeError __spec__ on Python 3.11 · Issue #273 · pytest-dev/py https://github.com/pytest-dev/py/issues/273 I tryed py 1.11.0. https://pypi.org/project/py/1.11.0/ diff --git a/Tools/Scripts/webkitpy/__init__.py b/Tools/Scripts/webkitpy/__init__.py index 7cc6593c1ef8..babfc798fdac 100644 --- a/Tools/Scripts/webkitpy/__init__.py +++ b/Tools/Scripts/webkitpy/__init__.py @@ -69,7 +69,7 @@ AutoInstall.register(Package('mozprocess', Version(1, 3, 0))) AutoInstall.register(Package('mozlog', Version(7, 1, 0), wheel=True)) AutoInstall.register(Package('mozterm', Version(1, 0, 0))) AutoInstall.register(Package('pluggy', Version(0, 13, 1))) -AutoInstall.register(Package('py', Version(1, 5, 2))) +AutoInstall.register(Package('py', Version(1, 11, 0))) AutoInstall.register(Package('pycodestyle', Version(2, 5, 0))) AutoInstall.register(Package('pyfakefs', Version(3, 7, 2))) AutoInstall.register(Package('scandir', Version(1, 10, 0))) Then, all tests failed: > [727/1813] webkitpy.layout_tests.run_webkit_tests_integrationtest.RunTest.test_output_diffs.test_output_diffs erred: > AttributeError: 'function' object has no attribute 'test_output_diffs' > > [728/1813] webkitpy.layout_tests.run_webkit_tests_integrationtest.RunTest.test_pixel_test_directories.test_pixel_test_directories erred: > AttributeError: 'function' object has no attribute 'test_pixel_test_directories' (In reply to Fujii Hironori from comment #1) > Then, all tests failed: Created another bug: Bug 249568 – Use unittest.TestCase.id() to get the test name instead of regexp matching Created attachment 464106 [details]
Patch
Created attachment 464107 [details]
Patch
Comment on attachment 464107 [details]
Patch
Thank you for the review.
Committed 258166@main (7177e82d539f): <https://commits.webkit.org/258166@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 464107 [details]. |