Fix libc++ pretty printer test for Python 3 after D67238

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@373452 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Fangrui Song 2019-10-02 11:49:47 +00:00
parent 2518823f1d
commit d81b9578e5

View File

@ -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: