Skip to content

[3.15] gh-108828: Support selecting tests by labels (GH-108829) - #162584

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
serhiy-storchaka:backport-bc63806-3.15
Nov 24, 2026
Merged

serhiy-storchaka merged 1 commit into
python:3.15from
serhiy-storchaka:backport-bc63806-3.15

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

(cherry picked from commit bc63806)

Co-authored-by: Claude Opus 4.8 (1M context) noreply@anthropic.com

🤖 Generated with Claude Code

…08829)

Add the --label and --no-label regrtest options to run or skip tests
that have a label.  "--label name" matches any value of the label,
"--label name=value" matches only that value.

Add test.support.mark() to label a test method or class, and
test.support.mark_module() to label every test of a module.
Many test.support helpers, such as requires_resource(), requires()
called at the module level, cpython_only, bigmemtest() and
import_module() called at the module level, add labels automatically.
(cherry picked from commit bc63806)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@read-the-docs-community

Copy link
Copy Markdown

@serhiy-storchaka serhiy-storchaka removed the type-feature A feature request or enhancement label Nov 24, 2026
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) November 24, 2026 20:39
@serhiy-storchaka
serhiy-storchaka merged commit d8af327 into python:3.15 Nov 24, 2026
66 of 69 checks passed
@serhiy-storchaka
serhiy-storchaka deleted the backport-bc63806-3.15 branch November 25, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant