Skip to content

Preserve patch examples order#4533

Merged
Liam-DeVoe merged 1 commit intoHypothesisWorks:masterfrom
Liam-DeVoe:next2
Sep 2, 2025
Merged

Preserve patch examples order#4533
Liam-DeVoe merged 1 commit intoHypothesisWorks:masterfrom
Liam-DeVoe:next2

Conversation

@Liam-DeVoe
Copy link
Copy Markdown
Member

would be very nice for Zac-HD/hypofuzz#236 where we want to sort patch examples by shortest-first.

Comment on lines +1 to +3
RELEASE_TYPE: patch

Patch files written by hypothesis now use a deterministic ordering when multiple |@example| decorators are present.
Copy link
Copy Markdown
Member Author

@Liam-DeVoe Liam-DeVoe Sep 2, 2025

Choose a reason for hiding this comment

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

this is a nice thing to have, but the primary motivation for this PR is the hypofuzz use-case. (Also I haven't 100% confirmed we have order that depends on PYTHONHASHSEED, but it seems right.)

@Liam-DeVoe Liam-DeVoe merged commit 0113a77 into HypothesisWorks:master Sep 2, 2025
131 of 132 checks passed
@Liam-DeVoe Liam-DeVoe deleted the next2 branch September 2, 2025 21:19
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.

2 participants