Bug 249568 - Use unittest.TestCase.id() to get the test name instead of regexp matching
Summary: Use unittest.TestCase.id() to get the test name instead of regexp matching
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Fujii Hironori
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-12-18 21:07 PST by Fujii Hironori
Modified: 2022-12-19 02:53 PST (History)
6 users (show)

See Also:


Attachments
Patch (2.16 KB, patch)
2022-12-18 21:11 PST, Fujii Hironori
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2022-12-18 21:07:04 PST
Use unittest.TestCase.id() to get the test name instead of regexp matching

Python v3.11 slightly changed the string representation of unittest.TestCase object.
This change broke test-webkitpy. 

https://docs.python.org/3.11/library/unittest.html
> test_isupper (__main__.TestStringMethods.test_isupper) ... ok

https://docs.python.org/3.10/library/unittest.html
> test_isupper (__main__.TestStringMethods) ... ok
Comment 1 Fujii Hironori 2022-12-18 21:11:32 PST
Created attachment 464100 [details]
Patch
Comment 2 EWS 2022-12-19 02:52:05 PST
Committed 258076@main (cb0b510690bb): <https://commits.webkit.org/258076@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 464100 [details].
Comment 3 Radar WebKit Bug Importer 2022-12-19 02:53:16 PST
<rdar://problem/103510183>