From f620d224b7415be8056a8850824c49ebfa69673c Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sun, 15 Jan 2017 00:06:02 +0000 Subject: [PATCH] Work around python3 bytes vs str in libc++ test config git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@292038 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/libcxx/compiler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/libcxx/compiler.py b/test/libcxx/compiler.py index 5003309a6..81fb07c02 100644 --- a/test/libcxx/compiler.py +++ b/test/libcxx/compiler.py @@ -287,7 +287,8 @@ class CXXCompiler(object): # TODO(EricWF): Are there other flags we need to worry about? if '-v' in cmd: cmd.remove('-v') - out, err, rc = lit.util.executeCommand(cmd, input='#error\n') + out, err, rc = lit.util.executeCommand( + cmd, input=lit.util.to_bytes('#error\n')) assert rc != 0 if flag in err: