From: Fangrui Song Date: Wed, 2 Oct 2019 11:49:47 +0000 (+0000) Subject: Fix libc++ pretty printer test for Python 3 after D67238 X-Git-Tag: llvmorg-11-init~7775 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=619bcebc05cf0b5cd303bd8ad624e66ab0fcf22f;p=platform%2Fupstream%2Fllvm.git Fix libc++ pretty printer test for Python 3 after D67238 llvm-svn: 373452 --- diff --git a/libcxx/test/pretty_printers/gdb_pretty_printer_test.py b/libcxx/test/pretty_printers/gdb_pretty_printer_test.py index 5e42568..b738c72 100644 --- a/libcxx/test/pretty_printers/gdb_pretty_printer_test.py +++ b/libcxx/test/pretty_printers/gdb_pretty_printer_test.py @@ -51,7 +51,7 @@ class CheckResult(gdb.Command): test_fails = not re.match(check_literal, value) else: check_literal_string = expectation_val.string(encoding="utf-8") - check_literal = check_literal_string.encode("utf-8") + check_literal = str(check_literal_string.encode("utf-8")) test_fails = value != check_literal if test_fails: