Closed Bug 1525477 Opened 5 years ago Closed 5 years ago

Remove some unreachable code from testing/web-platform/tests/tools/wpt/browser.py

Categories

(Testing :: web-platform-tests, enhancement)

Version 3
enhancement
Not set
normal

Tracking

(firefox67 fixed)

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: KWierso, Assigned: KWierso)

Details

Attachments

(1 file)

I was looking around to find something for unrelated reasons, and found this code block:
https://searchfox.org/mozilla-central/source/testing/web-platform/tests/tools/wpt/browser.py#225-226

I don't think channel can ever be "beta" at this point in the code, since we've already passed checks for channel being "stable" or "beta". At this point, I think channel can only be "nightly" or None.

Bug 1486084 likely made this unreachable, but even before that, I don't understand how this code worked:
https://searchfox.org/mozilla-central/diff/2de7f65b584db16b96a0d988ab4df81a4c115383/testing/web-platform/tests/tools/wpt/browser.py#194-206

I think we can remove that whole block of code.

Pushed by wkocher@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/308ac36df051
Remove unreachable block of code in wpt/browser.py r=jgraham
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/15291 for changes under testing/web-platform/tests
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: