Skip to content

tools/wpt/wptrunner crashes on Python 3.13 with a custom entry point. #58984

@dpranke

Description

@dpranke

If you add a custom entry point to a package so that wptrunner can access it and install a new (external)
test harness, under 3.13, the get_all_products() code in //tools/wptrunner/wptrunner/products.py will
crash with a KeyError.

This appears to be due to an upgrade in 3.13 to a new version of importlib.metadata that changed
the definition of the EntryPoints class to something that didn't support access by index, only by name.

There are various simple fixes available; anything that converts EntryPoints from a dict-like thing to a
list-like thing should work. A cast to a list works, for example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions