Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message for malformed pyproject.toml files #9732

Merged
merged 1 commit into from Mar 6, 2022

Conversation

nicoddemus
Copy link
Member

@nicoddemus nicoddemus commented Mar 5, 2022

Including the file name is enough to let the user know what the problem is.

The same is not needed for .ini files because their error message includes the path to the file by default.

Fix #9730

Including the file name is enough to let the user know what the problem is.

The same is not needed for `.ini` files because the error message includes the path to the file by default.

Fix pytest-dev#9730
@nicoddemus nicoddemus added the needs backport applied to PRs, indicates that it should be ported to the current bug-fix branch label Mar 5, 2022
Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

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

@asottile asottile merged commit 843e018 into pytest-dev:main Mar 6, 2022
@nicoddemus nicoddemus deleted the 9730-toml-failure branch March 6, 2022 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs backport applied to PRs, indicates that it should be ported to the current bug-fix branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Immediate failure if a malformed pyproject.toml exists in a parent directory
2 participants