better test output
authorStefan Behnel <scoder@users.berlios.de>
Sun, 25 May 2008 13:22:47 +0000 (15:22 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 25 May 2008 13:22:47 +0000 (15:22 +0200)
runtests.py

index a8b1d57f3310d48c0e974a62c3f4cb84e3fd7f96..fa7c7310ac067b6658e384a7d151b357a6bac920 100644 (file)
@@ -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: