Skip to content

feat(assertion): set type='int' for truncation_limit_lines and truncation_limit_chars ini options - #14794

Closed
amir-rezaei wants to merge 1 commit into
pytest-dev:mainfrom
amir-rezaei:feat/truncation-limit-ini-options-int-type
Closed

feat(assertion): set type='int' for truncation_limit_lines and truncation_limit_chars ini options#14794
amir-rezaei wants to merge 1 commit into
pytest-dev:mainfrom
amir-rezaei:feat/truncation-limit-ini-options-int-type

Conversation

@amir-rezaei

Copy link
Copy Markdown

Description

This PR resolves issue #14675 by setting type="int" for truncation_limit_lines and truncation_limit_chars ini options in src/_pytest/assertion/__init__.py.

Details

  • Allows TOML configuration files (pyproject.toml, pytest.toml) to specify integer values for truncation limits without raising a TypeError.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants