Skip to content

config: slightly simplify _set_initial_conftests#14307

Merged
bluetech merged 1 commit into
pytest-dev:mainfrom
bluetech:initial-conftests-simplify
Mar 22, 2026
Merged

config: slightly simplify _set_initial_conftests#14307
bluetech merged 1 commit into
pytest-dev:mainfrom
bluetech:initial-conftests-simplify

Conversation

@bluetech

Copy link
Copy Markdown
Member

Rework the logic a bit to collect the anchors and only then load them. This allows inlining _try_load_conftest and making the logic easier to follow.

@bluetech bluetech added the skip news used on prs to opt out of the changelog requirement label Mar 21, 2026
Rework the logic a bit to collect the anchors and only then load them.
This allows inlining `_try_load_conftest` and making the logic easier to
follow.
@bluetech
bluetech force-pushed the initial-conftests-simplify branch from 83d8596 to 76667b2 Compare March 21, 2026 21:13

@nicoddemus nicoddemus 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.

Much better!

@bluetech
bluetech merged commit b665afc into pytest-dev:main Mar 22, 2026
33 checks passed
@bluetech
bluetech deleted the initial-conftests-simplify branch March 22, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news used on prs to opt out of the changelog requirement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants