Closed Bug 1679028 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 26615 - [Python3] Make echo-content-escaped.py py3-compliant

Categories

(Core :: DOM: File, task, P4)

task

Tracking

()

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Stephen McGruer <smcgruer@chromium.org>' wrote:

[Python3] Make echo-content-escaped.py py3-compliant

Iterating over a 'bytes' object in Python gives ints, not bytes, and in
Python 3 it is a type error to compare ints to bytes like this method
does. Cast back to bytes to avoid the error.

PR 26615 applied with additional changes from upstream: ebb2824cabb11ff1ef3bfce1b7530980efbc916d
Component: web-platform-tests → DOM: File
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bdf005307551 [wpt PR 26615] - [Python3] Make echo-content-escaped.py py3-compliant, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
You need to log in before you can comment on or make changes to this bug.