Use saferepr for all types

This commit is contained in:
Pavel Karateev 2020-05-10 12:47:26 +03:00
parent 6b26f0f890
commit 7b196747dd
1 changed files with 1 additions and 5 deletions

View File

@ -67,11 +67,7 @@ def _show_fixture_action(fixturedef, msg):
tw.write(" (fixtures used: {})".format(", ".join(deps))) tw.write(" (fixtures used: {})".format(", ".join(deps)))
if hasattr(fixturedef, "cached_param"): if hasattr(fixturedef, "cached_param"):
if isinstance(fixturedef.cached_param, bytes): tw.write("[{}]".format(saferepr(fixturedef.cached_param, maxsize=42)))
param = saferepr(fixturedef.cached_param, maxsize=42)
else:
param = fixturedef.cached_param
tw.write("[{}]".format(param))
tw.flush() tw.flush()