diff --git a/src/_pytest/compat.py b/src/_pytest/compat.py index 7668c3a94c..df661bfff0 100644 --- a/src/_pytest/compat.py +++ b/src/_pytest/compat.py @@ -377,7 +377,7 @@ def safe_str(v): else: def safe_str(v): - """returns v as string, converting to ascii if necessary""" + """returns v as string, converting to utf-8 if necessary""" try: return str(v) except UnicodeError: