From f5a721b5bfdcf94b94d97ce5ed8eaae75152c821 Mon Sep 17 00:00:00 2001 From: Fabio Zadrozny Date: Tue, 14 May 2019 09:47:18 -0300 Subject: [PATCH] Change unicode char to bytes (#5256) --- src/_pytest/terminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/terminal.py b/src/_pytest/terminal.py index 771e6a83593..4d233d55eb6 100644 --- a/src/_pytest/terminal.py +++ b/src/_pytest/terminal.py @@ -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