From d5dc73d2c26aa01cb64bbcca2e3b9a5aea108e9a Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 30 Aug 2019 22:53:38 +0000 Subject: [test] Fix 'argument must be str, not bytes' for Python 3. Use `sys.stdout.buffer` instead of `sys.stdout` in lldbpexpect.py. llvm-svn: 370545 --- lldb/packages/Python/lldbsuite/test/lldbpexpect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/packages/Python/lldbsuite/test/lldbpexpect.py') diff --git a/lldb/packages/Python/lldbsuite/test/lldbpexpect.py b/lldb/packages/Python/lldbsuite/test/lldbpexpect.py index db989036cd2..a72d36f8271 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbpexpect.py +++ b/lldb/packages/Python/lldbsuite/test/lldbpexpect.py @@ -22,13 +22,13 @@ else: class PExpectTest(TestBase): NO_DEBUG_INFO_TESTCASE = True - PROMPT = str("(lldb) ") + PROMPT = "(lldb) " def expect_prompt(self): self.child.expect_exact(self.PROMPT) def launch(self, executable=None, timeout=30, dimensions=None): - logfile = sys.stdout if self.TraceOn() else None + logfile = sys.stdout.buffer if self.TraceOn() else None args = ['--no-lldbinit', '--no-use-colors'] for cmd in self.setUpCommands(): args += ['-O', cmd] -- cgit v1.2.3