[Lldb-commits] [lldb] r370526 - [test] Make sure PROMPT is a string
    Jonas Devlieghere via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Fri Aug 30 13:46:55 PDT 2019
    
    
  
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)
    
    
More information about the lldb-commits
mailing list