Skip to content

Commit

Permalink
Merge pull request #5489 from graingert/fix-safe-str-doc
Browse files Browse the repository at this point in the history
fix safe_str docstring
  • Loading branch information
nicoddemus committed Jun 25, 2019
2 parents 430de12 + d2f74d3 commit 554bff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/compat.py
Expand Up @@ -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:
Expand Down

0 comments on commit 554bff8

Please sign in to comment.