Commit cffb9768 authored by ian@well-typed.com's avatar ian@well-typed.com
Browse files

Make do_test catch and re-raise KeyboardInterrupt

This means that hitting ^C now stops the testsuite from running,
rather than just killing the current test.
parent 4a33b6e8
......@@ -887,6 +887,8 @@ def do_test(name, way, func, args):
t.expected_failures[name] = [way]
else:
framework_fail(name, way, 'bad result ' + passFail)
except KeyboardInterrupt:
raise
except:
framework_fail(name, way, 'do_test exception')
traceback.print_exc()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment