attempts to fix parameter by explicitly making sure that config is of type Config, defined in pytest.

This commit is contained in:
HolyMagician03-UMich 2024-04-06 20:05:24 -04:00
parent 079578f767
commit 2061e2968c
1 changed files with 1 additions and 1 deletions

View File

@ -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