[commit: ghc] master: Fix some Python brainos in testlib (except e is not valid form). (03200e8)

git at git.haskell.org git at git.haskell.org
Fri Feb 7 06:20:42 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/03200e8cebb0a20c0a0f608390c80f87f32a3f34/ghc

>---------------------------------------------------------------

commit 03200e8cebb0a20c0a0f608390c80f87f32a3f34
Author: Edward Z. Yang <ezyang at cs.stanford.edu>
Date:   Thu Feb 6 22:20:27 2014 -0800

    Fix some Python brainos in testlib (except e is not valid form).
    
    Signed-off-by: Edward Z. Yang <ezyang at cs.stanford.edu>


>---------------------------------------------------------------

03200e8cebb0a20c0a0f608390c80f87f32a3f34
 testsuite/driver/testlib.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 8c8c60d..d8fbd02 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:



More information about the ghc-commits mailing list