From: Stefan Behnel Date: Sun, 25 May 2008 13:22:47 +0000 (+0200) Subject: better test output X-Git-Tag: 0.9.8rc1~11^2~10^2~15^2~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=afc2a0ab266de1b96d36c18a251fcd58cbf48086;p=cython.git better test output --- diff --git a/runtests.py b/runtests.py index a8b1d57f..fa7c7310 100644 --- a/runtests.py +++ b/runtests.py @@ -208,11 +208,11 @@ class CythonRunTestCase(CythonCompileTestCase): def run(self, result=None): if result is None: result = self.defaultTestResult() + result.startTest(self) try: self.runTest() doctest.DocTestSuite(self.module).run(result) except Exception: - result.startTest(self) result.addError(self, sys.exc_info()) result.stopTest(self) try: