Skip to content

Conversation

bluetech
Copy link
Member

Currently ini overrides are handled lazily in getini, but I think it just complicates things and I don't see a reason to do it lazily.

Do it eagerly in determine_setup instead.

inicfg.update(ini_overrides)

assert rootdir is not None
return rootdir, inipath, inicfg or {}, ignored_config_files
Copy link
Member Author

Choose a reason for hiding this comment

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

Unrelated cleanup, the or isn't needed.

@bluetech bluetech added the skip news used on prs to opt out of the changelog requirement label Oct 19, 2025
Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

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

LGTM

Perhaps mention this in a trivial changelog just in case there is a corner case affected by this?

Currently ini overrides are handled lazily in `getini`, but I think it
just complicates things and I don't see a reason to it lazily.

Do it eagerly in `determine_setup` instead.
@bluetech bluetech force-pushed the simplify-override-ini branch from 44a7fc8 to 15c2e19 Compare October 21, 2025 13:34
@bluetech
Copy link
Member Author

Perhaps mention this in a trivial changelog just in case there is a corner case affected by this?

We don't have "trivial" but I added a "misc" one.

@bluetech bluetech merged commit 0877d57 into pytest-dev:main Oct 21, 2025
33 checks passed
@bluetech bluetech deleted the simplify-override-ini branch October 21, 2025 13:53
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