summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-10-02 11:49:47 +0000
committerFangrui Song <maskray@google.com>2019-10-02 11:49:47 +0000
commit619bcebc05cf0b5cd303bd8ad624e66ab0fcf22f (patch)
tree38809be79fb04c2e2340aa6bac4d6618b7587554 /libcxx/test
parentd06ee791f347df0dcc4f2bf902b1486da26a1962 (diff)
downloadbcm5719-llvm-619bcebc05cf0b5cd303bd8ad624e66ab0fcf22f.tar.gz
bcm5719-llvm-619bcebc05cf0b5cd303bd8ad624e66ab0fcf22f.zip
Fix libc++ pretty printer test for Python 3 after D67238
llvm-svn: 373452
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/pretty_printers/gdb_pretty_printer_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/pretty_printers/gdb_pretty_printer_test.py b/libcxx/test/pretty_printers/gdb_pretty_printer_test.py
index 5e425688734..b738c72b64c 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:
OpenPOWER on IntegriCloud