Skip to content

Reject negative log_auto_indent values#14586

Open
syncrain wants to merge 2 commits into
pytest-dev:mainfrom
syncrain:fix-negative-auto-indent-values
Open

Reject negative log_auto_indent values#14586
syncrain wants to merge 2 commits into
pytest-dev:mainfrom
syncrain:fix-negative-auto-indent-values

Conversation

@syncrain

Copy link
Copy Markdown
Contributor

Negative values passed to log_auto_indent were treated as dynamic indentation, even though the documentation and docstring mention that only positive integers are valid and that invalid values should fall back to the default behavior.

This change normalizes negative integer values to 0, disabling auto-indentation as documented.

Added necessary tests and verified that all the relevant test cases pass locally.

@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Jun 13, 2026
@syncrain syncrain marked this pull request as ready for review June 13, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant