fix: load test* subdir conftests when initial path is missing#14622
Merged
bluetech merged 1 commit intoJun 19, 2026
Merged
Conversation
4 tasks
…ot be initial Regressed in b665afc. Fix pytest-dev#14608. Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Ran Benita <ran@unusedvar.com>
569c581 to
f36b07a
Compare
bluetech
approved these changes
Jun 18, 2026
bluetech
left a comment
Member
There was a problem hiding this comment.
Thanks for finding this.
(I made some tweaks)
Backport to 9.1.x: 💚 backport PR created✅ Backport PR branch: Backported as #14624 🤖 @patchback |
bluetech
added a commit
that referenced
this pull request
Jun 19, 2026
…est-subdir fix: load test* subdir conftests when initial path is missing (cherry picked from commit b375b79)
bluetech
added a commit
that referenced
this pull request
Jun 19, 2026
…375b79ec913630af83ceff58944347408a6534a/pr-14622 [PR #14622/b375b79e backport][9.1.x] fix: load test* subdir conftests when initial path is missing
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.
This PR fixes a mistake in the 9.1.0 rewrite of
_set_initial_conftests(#14307) that led to #14608. I saw this issue in my own project and have verified that the included test reproduces the failure and this PR then fixes it.Closes #14608