Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support specifying values for resources in regrtests #143553

Closed
Labels
3.13bugs and security fixes3.14bugs and security fixes3.15new features, bugs and security fixestestsTests in the Lib/test dirtype-featureA feature request or enhancement
@serhiy-storchaka

Description

@serhiy-storchaka

Feature or enhancement

Currently, resources are binary -- they are either enabled or disabled. But sometimes it is useful to enable them partially or to specify a parameter for it. For example, recently addedtest_xpickle (#75572) takes more than 2 minutes on fast machine for each available Python version, so it is disabled by default and requires the extraxpickle resource. It would be handy to be able to run it only for the specified Python version, e.g.-u xpickle=2.7 would run it with Python 2.7.

This feature can also be used in#65784.

This feature the big-memory tests can be implemented as yet one parametrised extra resource. E.g.-u bigmem=16G instead of-M 16G.

This feature somewhere intersects with#108828 which I plan to extend to support values too.

There is a question whether we should support comma in values. I.e. whether-u foo=bar,baz should be interpreted as one resourcefoo with valuebar,baz or two resourcesfoo andbaz, the former with valuebar. For now I choose the latter option, as slightly simpler to implement, but this can be reconsidered in future. It will be a breaking change, but this is an internal API.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixes3.15new features, bugs and security fixestestsTests in the Lib/test dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp