Skip to content

gh-162671: Support selecting hypothesis tests by label - #162672

Merged
sobolevn merged 2 commits into
python:mainfrom
sobolevn:issue-162671
Nov 26, 2026
Merged

sobolevn merged 2 commits into
python:mainfrom
sobolevn:issue-162671

Conversation

@sobolevn

@sobolevn sobolevn commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Now running ./python.exe -m test --label hypothesis would only run hypothesis tests:

5 tests OK.

Total duration: 37.2 sec
Total tests: run=76 skipped=18
Total test files: run=555/564 skipped=93 resource_denied=9 run_no_tests=457
Result: SUCCESS

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. 👍

Comment thread Lib/test/support/hypothesis_helper.py Resolved
@serhiy-storchaka

Copy link
Copy Markdown
Member

mark_module('hypothesis') at the top of test_math_property and test_zoneinfo_property would probably be enough there. It would also cover new tests added later.

@sobolevn
sobolevn enabled auto-merge (squash) November 26, 2026 15:15
@sobolevn
sobolevn merged commit 9fe52e9 into python:main Nov 26, 2026
53 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @sobolevn, I could not cleanly backport this to 3.14 due to a conflict.

Please backport manually with cherry_picker, see the devguide for more information.

cherry_picker 9fe52e92697c08acf6f9edd25d26c56d5a05fb96 3.14

@bedevere-app

bedevere-app Bot commented Nov 26, 2026

Copy link
Copy Markdown

GH-162691 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Nov 26, 2026
@bedevere-app

bedevere-app Bot commented Nov 26, 2026

Copy link
Copy Markdown

GH-162692 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Nov 26, 2026
sobolevn added a commit that referenced this pull request Nov 26, 2026
) (#162692)

(cherry picked from commit 9fe52e9)

Co-authored-by: sobolevn <mail@sobolevn.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants