Skip to content

Commit 554bff8

Browse files
authored
Merge pull request pytest-dev#5489 from graingert/fix-safe-str-doc
fix safe_str docstring
2 parents 430de12 + d2f74d3 commit 554bff8

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)