[test] Make sure PROMPT is a string
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 30 Aug 2019 20:46:55 +0000 (20:46 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 30 Aug 2019 20:46:55 +0000 (20:46 +0000)
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.

llvm-svn: 370526

lldb/packages/Python/lldbsuite/test/lldbpexpect.py

index bb50f47..db98903 100644 (file)
@@ -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)