From 2061e2968cb005f84879023f1fdb9fe62823a5b9 Mon Sep 17 00:00:00 2001 From: HolyMagician03-UMich Date: Sat, 6 Apr 2024 20:05:24 -0400 Subject: [PATCH] attempts to fix parameter by explicitly making sure that config is of type Config, defined in pytest. --- src/_pytest/terminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/terminal.py b/src/_pytest/terminal.py index 6dd33df25..f81dd003f 100644 --- a/src/_pytest/terminal.py +++ b/src/_pytest/terminal.py @@ -1409,7 +1409,7 @@ def _get_line_with_reprcrash_message( pass else: if not running_on_ci(): - if config.get_verbosity(Config.VERBOSITY_TEST_CASES) >= 2: + if isinstance(config, Config) and config.option.verbose >= 2: available_width = 500 else: available_width = tw.fullwidth - line_width