_pytest: address review feedback (thanks Bruno!)
This commit is contained in:
parent
6aca93bcd3
commit
fa769e2612
|
@ -849,7 +849,7 @@ class FormattedExcinfo:
|
||||||
if self.truncate_args:
|
if self.truncate_args:
|
||||||
str_repr = saferepr(argvalue)
|
str_repr = saferepr(argvalue)
|
||||||
else:
|
else:
|
||||||
str_repr = safeformat(argvalue)
|
str_repr = saferepr(argvalue, maxsize=None)
|
||||||
args.append((argname, str_repr))
|
args.append((argname, str_repr))
|
||||||
return ReprFuncArgs(args)
|
return ReprFuncArgs(args)
|
||||||
return None
|
return None
|
||||||
|
|
|
@ -448,10 +448,7 @@ class Node(abc.ABC, metaclass=NodeMeta):
|
||||||
else:
|
else:
|
||||||
truncate_locals = True
|
truncate_locals = True
|
||||||
|
|
||||||
if self.config.getoption("verbose", 0) > 2:
|
truncate_args = False if self.config.getoption("verbose", 0) > 2 else True
|
||||||
truncate_args = False
|
|
||||||
else:
|
|
||||||
truncate_args = True
|
|
||||||
|
|
||||||
# excinfo.getrepr() formats paths relative to the CWD if `abspath` is False.
|
# excinfo.getrepr() formats paths relative to the CWD if `abspath` is False.
|
||||||
# It is possible for a fixture/test to change the CWD while this code runs, which
|
# It is possible for a fixture/test to change the CWD while this code runs, which
|
||||||
|
|
Loading…
Reference in New Issue