summaryrefslogtreecommitdiff
path: root/test/Unit
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-08-07 23:09:10 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-08-07 23:09:10 +0000
commit4229b95d66ce3757b1ef8691da2ef6e9f329b38d (patch)
treeffec29d9a3cfb2f9ac5dba999a00e4aeb6ad995b /test/Unit
parent41418d17cced656f91038b2482bc9d173b4974b0 (diff)
downloadllvm-4229b95d66ce3757b1ef8691da2ef6e9f329b38d.tar.gz
llvm-4229b95d66ce3757b1ef8691da2ef6e9f329b38d.tar.bz2
llvm-4229b95d66ce3757b1ef8691da2ef6e9f329b38d.tar.xz
[tests] Avoid deprecated except syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Unit')
-rw-r--r--test/Unit/lit.site.cfg.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Unit/lit.site.cfg.in b/test/Unit/lit.site.cfg.in
index 65e98d0af5..c6e12400d1 100644
--- a/test/Unit/lit.site.cfg.in
+++ b/test/Unit/lit.site.cfg.in
@@ -1,3 +1,5 @@
+import sys
+
## Autogenerated by LLVM/Clang configuration.
# Do not edit!
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
@@ -13,7 +15,8 @@ config.shlibpath_var = "@SHLIBPATH_VAR@"
try:
config.llvm_tools_dir = config.llvm_tools_dir % lit.params
config.llvm_build_mode = config.llvm_build_mode % lit.params
-except KeyError,e:
+except KeyError:
+ e = sys.exc_info()[1]
key, = e.args
lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))