[libcxx-commits] [libcxx] r373452 - Fix libc++ pretty printer test for Python 3 after D67238

Fangrui Song via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 2 04:49:47 PDT 2019


Author: maskray
Date: Wed Oct  2 04:49:47 2019
New Revision: 373452

URL: http://llvm.org/viewvc/llvm-project?rev=373452&view=rev
Log:
Fix libc++ pretty printer test for Python 3 after D67238

Modified:
    libcxx/trunk/test/pretty_printers/gdb_pretty_printer_test.py

Modified: libcxx/trunk/test/pretty_printers/gdb_pretty_printer_test.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/pretty_printers/gdb_pretty_printer_test.py?rev=373452&r1=373451&r2=373452&view=diff
==============================================================================
--- libcxx/trunk/test/pretty_printers/gdb_pretty_printer_test.py (original)
+++ libcxx/trunk/test/pretty_printers/gdb_pretty_printer_test.py Wed Oct  2 04:49:47 2019
@@ -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:




More information about the libcxx-commits mailing list