You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support specifying values for resources in regrtests #143553
3.13only security fixes3.14bugs and security fixes3.15bugs and security fixestestsTests in the Lib/test dirtype-featureA feature request 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 added test_xpickle (#75572) takes more than 2 minutes on fast machine for each available Python version, so it is disabled by default and requires the extra xpickle 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 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 resource foo with value bar,baz or two resources foo and baz, the former with value bar. 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.
3.13only security fixes3.14bugs and security fixes3.15bugs and security fixestestsTests in the Lib/test dirtype-featureA feature request or enhancement
Activity
pythongh-143553: Add support for parametrized resources in regrtests
pythongh-143553: Add support for parametrized resources in regrtests
gh-143553: Add support for parametrized resources in regrtests (GH-14…
pythongh-143553: Add support for parametrized resources in regrtests (p…
pythongh-143553: Add support for parametrized resources in regrtests (p…
[3.14] gh-143553: Add support for parametrized resources in regrtests (…
[3.13] gh-143553: Add support for parametrized resources in regrtests (…
pythongh-143553: Add support for parametrized resources in regrtests (p…
pythongh-143553: Add support for parametrized resources in regrtests (p…