Skip to content

Commit

Permalink
Change unicode char to bytes (pytest-dev#5256)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed May 14, 2019
1 parent 6a43c8c commit f5a721b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/terminal.py
Expand Up @@ -998,7 +998,7 @@ def _get_line_with_reprcrash_message(config, rep, termwidth):
# u'😄' will result in a High Surrogate (U+D83D) character, which is
# rendered as u'�'; in this case we just strip that character out as it
# serves no purpose being rendered
msg = msg.rstrip(u"\uD83D")
msg = msg.rstrip("\uD83D")
msg += ellipsis
line += sep + msg
return line
Expand Down

0 comments on commit f5a721b

Please sign in to comment.