๐ fix(config): use inipath for TOML file discovery by gaborbernat ยท Pull Request #190 ยท pytest-dev/pytest-env
changed the title
Fix TOML config walk starting from inipath
๐ fix(config): start TOML walk from inipath
When pytest resolves config to a subdirectory (e.g. tests_integration/pytest.toml), rootpath still points to the project root. This caused the parent pyproject.toml to be found first, ignoring the subdirectory's pytest_env config. Starting from inipath.parent ensures the walk begins at the directory of the resolved config file, finding the correct pytest_env section. Falls back to rootpath when no config file is found.
gaborbernat
changed the title
๐ fix(config): start TOML walk from inipath
๐ fix(config): use inipath for TOML file discovery
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