attempts to fix parameter by explicitly making sure that config is of type Config, defined in pytest.
This commit is contained in:
parent
079578f767
commit
2061e2968c
|
@ -1409,7 +1409,7 @@ def _get_line_with_reprcrash_message(
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
if not running_on_ci():
|
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
|
available_width = 500
|
||||||
else:
|
else:
|
||||||
available_width = tw.fullwidth - line_width
|
available_width = tw.fullwidth - line_width
|
||||||
|
|
Loading…
Reference in New Issue