Closed Bug 1686412 Opened 4 years ago Closed 4 years ago

./mach wpt fails on macos with python 3.9 or newer

Categories

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

Default
task

Tracking

(firefox86 fixed)

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: jdescottes, Assigned: jgraham)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Running ./mach wpt fails with the following error:

AttributeError: module 'plistlib' has no attribute 'readPlistFromString'

        try:
            # if py3
            readPlistFromBytes = plistlib.readPlistFromBytes
        except AttributeError:
            readPlistFromBytes = plistlib.readPlistFromString
        fonts = readPlistFromBytes(fonts)

https://searchfox.org/mozilla-central/rev/014fe72eaba26dcf6082fb9bbaf208f97a38594e/testing/web-platform/tests/tools/wptrunner/wptrunner/font.py#81-86

readPlistFromBytes was removed in Python 3.9 but should be replaced by loads

Links to readPlistFromBytes removal in Python 3.9:

Assignee: nobody → james
Status: NEW → ASSIGNED
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/efbb163e7681 Update usage of plistlib for Python 3.9 changes, r=jdescottes
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/27171 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
Blocks: mach-busted
Upstream PR was closed without merging
Upstream PR was closed without merging
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: