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
diff --git a/test/libcxx/compiler.py b/test/libcxx/compiler.py
index 5003309..81fb07c 100644
--- a/test/libcxx/compiler.py
+++ b/test/libcxx/compiler.py
@@ -287,7 +287,8 @@
         # 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: