[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.

llvm-svn: 370526
This commit is contained in:
Jonas Devlieghere 2019-08-30 20:46:55 +00:00
parent 0bb1630685
commit c847cf31b0
1 changed files with 1 additions and 1 deletions

View 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)