From f34117d84991d2bd2c722cf3a36244fe4acdc79c Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 7 Aug 2013 23:09:24 +0000 Subject: [PATCH] [tests] Make string encoding issues explicit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187929 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/lit.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/lit.cfg b/test/lit.cfg index c018674f9b4..dc08c679ca3 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -283,11 +283,11 @@ import subprocess try: llc_cmd = subprocess.Popen([os.path.join(llvm_tools_dir, 'llc'), '-version'], stdout = subprocess.PIPE) -except OSError, why: - print "Could not find llc in " + llvm_tools_dir +except OSError: + print("Could not find llc in " + llvm_tools_dir) exit(42) -if re.search(r'with assertions', llc_cmd.stdout.read()): +if re.search(r'with assertions', llc_cmd.stdout.read().decode('ascii')): config.available_features.add('asserts') llc_cmd.wait()