Repository navigation
Document how to run the Hypothesis property tests - #1525
Merged
Merged
Conversation
asvetlov
force-pushed
the
document-hypothesis-test-leg
branch
from
September 22, 2026 22:38
32ea456 to
8536b36
Compare
asvetlov
marked this pull request as ready for review
September 22, 2026 22:40
Contributor
|
asvetlov
force-pushed
the
document-hypothesis-test-leg
branch
from
September 22, 2026 22:56
8536b36 to
aace6eb
Compare
This comment has been minimized.
This comment has been minimized.
pytest.ini sets -m "not hypothesis", so a plain test run skips tests/test_hypothesis_*.py without reporting it, and the pin is not part of the dev requirements. Record the marker override, the separate requirements file, and the fact that a single run already covers both backends.
asvetlov
force-pushed
the
document-hypothesis-test-leg
branch
from
September 23, 2026 07:31
aace6eb to
c89b6f4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What do these changes do?
AGENTS.mddescribed how to run the suite without mentioning that theproperty tests under
tests/test_hypothesis_*.pyare not part of it.pytest.inisets-m "not hypothesis", so a plainmake testskipsthem and reports a pass, and
make install-devdoes not installhypothesis either, since the pin lives in its own
requirements/pytest-hypothesis.txt. Someone following the file aswritten would believe they had run the whole suite.
The Tests section now records the marker override, the separate
requirements file and the reason it is separate, and the fact that one
-m hypothesisrun already covers both backends. Documentation only.Are there changes in behavior for the user?
No.
Is it a substantial burden for the maintainers to support this?
No.
Related issue number
None. Follow-up to #1523, which fixed the pure-Python invocation in the
same section.
Checklist
CONTRIBUTORS.txt— N/A, no such file in this repoCHANGES/foldermake doc-spellingpasses and any new technical words are added todocs/spelling_wordlist.txtDrafted with Claude Code (Opus 5); reviewed by @asvetlov.
Agent run details (optional, for reviewers)
Claims checked against the tree rather than assumed.
make install-devreally does not bring hypothesis in; a fresh venvbuilt from
requirements/dev.txthas nohypothesismodule:The documented commands, run verbatim on CPython 3.14.7t:
That a single run covers both backends was confirmed by collection,
which yields
-cand-pyids together:The note on why the pin is kept out of
requirements/pytest.txt, andthe two CI jobs, are taken from the existing comments on the
hypothesis-gilandhypothesis-freethreadingjobs in.github/workflows/ci-cd.yml.pre-commit runover the changed files passes.