Skip to content

Commit d2f74d3

Browse files
committed
fix safe_str docstring
1 parent 4b104ba commit d2f74d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def safe_str(v):
377377
else:
378378

379379
def safe_str(v):
380-
"""returns v as string, converting to ascii if necessary"""
380+
"""returns v as string, converting to utf-8 if necessary"""
381381
try:
382382
return str(v)
383383
except UnicodeError:

0 commit comments

Comments
 (0)