From efa140ecb80055b4ba09630913899c4e92e58265 Mon Sep 17 00:00:00 2001 From: ferkans-amir Date: Tue, 28 Jul 2026 10:22:53 +0200 Subject: [PATCH] feat(assertion): set type='int' for truncation_limit_lines and truncation_limit_chars ini options --- src/_pytest/assertion/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/_pytest/assertion/__init__.py b/src/_pytest/assertion/__init__.py index ad2454ab820..2644ab51bae 100644 --- a/src/_pytest/assertion/__init__.py +++ b/src/_pytest/assertion/__init__.py @@ -51,11 +51,13 @@ def pytest_addoption(parser: Parser) -> None: parser.addini( "truncation_limit_lines", + type="int", default=None, help="Set threshold of LINES after which truncation will take effect", ) parser.addini( "truncation_limit_chars", + type="int", default=None, help=("Set threshold of CHARS after which truncation will take effect"), )