[Lldb-commits] [lldb] r370545 - [test] Fix 'argument must be str, not bytes' for Python 3.
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 30 15:53:39 PDT 2019
Author: jdevlieghere
Date: Fri Aug 30 15:53:38 2019
New Revision: 370545
URL: http://llvm.org/viewvc/llvm-project?rev=370545&view=rev
Log:
[test] Fix 'argument must be str, not bytes' for Python 3.
Use `sys.stdout.buffer` instead of `sys.stdout` in lldbpexpect.py.
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=370545&r1=370544&r2=370545&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/lldbpexpect.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/lldbpexpect.py Fri Aug 30 15:53:38 2019
@@ -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]
More information about the lldb-commits
mailing list