diff options
author | Edward Z. Yang <ezyang@cs.stanford.edu> | 2014-02-06 22:20:27 -0800 |
---|---|---|
committer | Edward Z. Yang <ezyang@cs.stanford.edu> | 2014-02-06 22:20:27 -0800 |
commit | 03200e8cebb0a20c0a0f608390c80f87f32a3f34 (patch) | |
tree | b9be6dcf07dc4b6fab3672560ee0305298bae88c /testsuite/driver | |
parent | b4eb630c7480bc56c673a463f274aec18e237e8c (diff) | |
download | haskell-03200e8cebb0a20c0a0f608390c80f87f32a3f34.tar.gz |
Fix some Python brainos in testlib (except e is not valid form).
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Diffstat (limited to 'testsuite/driver')
-rw-r--r-- | testsuite/driver/testlib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py index 8c8c60d2f5..d8fbd02d89 100644 --- a/testsuite/driver/testlib.py +++ b/testsuite/driver/testlib.py @@ -675,7 +675,7 @@ def test_common_work (name, opts, func, args): result = runCmdFor(name, 'cd ' + getTestOpts().testdir + ' && ' + cleanCmd) if result != 0: framework_fail(name, 'cleaning', 'clean-command failed: ' + str(result)) - except e: + except: framework_fail(name, 'cleaning', 'clean-command exception') package_conf_cache_file_end_timestamp = get_package_cache_timestamp(); @@ -738,7 +738,7 @@ def do_test(name, way, func, args): result = runCmdFor(name, 'cd ' + getTestOpts().testdir + ' && ' + preCmd) if result != 0: framework_fail(name, way, 'pre-command failed: ' + str(result)) - except e: + except: framework_fail(name, way, 'pre-command exception') try: |