[commit: ghc] wip/python3: Catch only an Exception (1fff290)

git at git.haskell.org git at git.haskell.org
Sat Sep 20 23:20:58 UTC 2014


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

On branch  : wip/python3
Link       : http://ghc.haskell.org/trac/ghc/changeset/1fff29000adc087e0ed98a397d6c2ded594c80ac/ghc

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

commit 1fff29000adc087e0ed98a397d6c2ded594c80ac
Author: Krzysztof Gogolewski <krz.gogolewski at gmail.com>
Date:   Sat Sep 20 19:04:22 2014 +0200

    Catch only an Exception
    
    This allows ^C during test discovery


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

1fff29000adc087e0ed98a397d6c2ded594c80ac
 testsuite/driver/runtests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/driver/runtests.py b/testsuite/driver/runtests.py
index fcff225..7b01f7d 100644
--- a/testsuite/driver/runtests.py
+++ b/testsuite/driver/runtests.py
@@ -263,7 +263,7 @@ for file in t_files:
     newTestDir(os.path.dirname(file))
     try:
         exec(open(file).read())
-    except:
+    except Exception:
         print('*** framework failure: found an error while executing ', file, ':')
         t.n_framework_failures = t.n_framework_failures + 1
         traceback.print_exc()



More information about the ghc-commits mailing list