Closed Bug 2014017 Opened 9 months ago Closed 7 months ago

[wpt-sync] Sync PR 57503 - [wptrunner] Use more dataclass functionality for Product

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox151 fixed)

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 57503 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/57503
Details from upstream follow.

Sam Sneddon <gsnedders@apple.com> wrote:

[wptrunner] Use more dataclass functionality for Product

By moving the dataclass to a base class we can simply call the dataclass generated __init__ on the superclass, rather than having to do it all manually.

All of the logic is now within dataclass; all the Product subclass does is maintain support for the deprecated constructor, and provides the from_product_name method.

The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f2f1137200e6 https://hg.mozilla.org/integration/autoland/rev/6dc071f0e61a [wpt PR 57503] - [wptrunner] Use more dataclass functionality for Product, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
You need to log in before you can comment on or make changes to this bug.