Mercurial > hg-stable
changeset 21500:130cc0d7bfde
run-tests: don't trap exceptions in Test.runTest()
Exceptions are all handled in Test.run(). This code was redundant since
the unittest test wrapper class was merged into Test.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 20 Apr 2014 18:23:48 -0700 |
parents | d22f4e72dcd5 |
children | 98a0c58ee200 |
files | tests/run-tests.py |
diffstat | 1 files changed, 4 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Sun Apr 20 18:20:24 2014 -0700 +++ b/tests/run-tests.py Sun Apr 20 18:23:48 2014 -0700 @@ -485,15 +485,10 @@ vlog('# Test', self.name) - try: - ret, out = self._run(replacements, env) - self._finished = True - self._ret = ret - self._out = out - except KeyboardInterrupt: - raise - except Exception, e: - return self.fail('Exception during execution: %s' % e, 255) + ret, out = self._run(replacements, env) + self._finished = True + self._ret = ret + self._out = out def describe(ret): if ret < 0: