Author: jdevlieghere
Date: Fri Aug 30 13:46:55 2019
New Revision: 370526

URL: http://llvm.org/viewvc/llvm-project?rev=370526&view=rev
Log:
[test] Make sure PROMPT is a string

Currently tests using expect_prompt are failing on the Python 3 bot with
an error saying "argument must be str, not bytes". I don't have a Python
3 build handy, but I suspect this might fix that.

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/lldbpexpect.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/lldbpexpect.py
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/lldbpexpect.py?rev=370526&r1=370525&r2=370526&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/lldbpexpect.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/lldbpexpect.py Fri Aug 30 
13:46:55 2019
@@ -22,7 +22,7 @@ else:
     class PExpectTest(TestBase):
 
         NO_DEBUG_INFO_TESTCASE = True
-        PROMPT = "(lldb) "
+        PROMPT = str("(lldb) ")
 
         def expect_prompt(self):
             self.child.expect_exact(self.PROMPT)


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to