Skip to content

🐛 fix(config): honor empty native TOML sections - #294

Merged
gaborbernat merged 2 commits into
pytest-dev:mainfrom
Zhuyuyangyy:fix/empty-native-section
Oct 31, 2026
Merged

gaborbernat merged 2 commits into
pytest-dev:mainfrom
Zhuyuyangyy:fix/empty-native-section

Conversation

@Zhuyuyangyy

@Zhuyuyangyy Zhuyuyangyy commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

An empty native TOML environment section now blocks INI env entries. Projects can disable those entries without removing them from an existing config.

Configuration discovery selects the first native TOML section. The entry loader treats that selection as final even when the section contains no variables, so it does not fall through to INI entries.

@gaborbernat gaborbernat added the bug Something isn't working label Oct 31, 2026
@gaborbernat gaborbernat changed the title fix: honor empty native TOML environment sections 🐛 fix(config): honor empty native TOML sections Oct 31, 2026
@gaborbernat
gaborbernat enabled auto-merge (squash) October 31, 2026 14:41
@gaborbernat
gaborbernat merged commit 8eca638 into pytest-dev:main Oct 31, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants