diff options
author | Krzysztof Gogolewski <krz.gogolewski@gmail.com> | 2014-09-20 19:04:22 +0200 |
---|---|---|
committer | Krzysztof Gogolewski <krz.gogolewski@gmail.com> | 2014-09-21 00:03:36 +0200 |
commit | 1fff29000adc087e0ed98a397d6c2ded594c80ac (patch) | |
tree | 5c61aa2bc547d80cb638a836e2dcedec3f46ad05 | |
parent | 3e6e9813c0b3935a4f3cd1a34d6e1feef979c179 (diff) | |
download | haskell-1fff29000adc087e0ed98a397d6c2ded594c80ac.tar.gz |
Catch only an Exception
This allows ^C during test discovery
-rw-r--r-- | testsuite/driver/runtests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/driver/runtests.py b/testsuite/driver/runtests.py index fcff225bea..7b01f7d66a 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() |