From: Daniel Dunbar Date: Wed, 7 Aug 2013 23:09:24 +0000 (+0000) Subject: [tests] Make string encoding issues explicit. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f34117d84991d2bd2c722cf3a36244fe4acdc79c;p=oota-llvm.git [tests] Make string encoding issues explicit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187929 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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()