Commit afc2a0ab authored by Stefan Behnel's avatar Stefan Behnel

better test output

parent 74745b37
...@@ -208,11 +208,11 @@ class CythonRunTestCase(CythonCompileTestCase): ...@@ -208,11 +208,11 @@ class CythonRunTestCase(CythonCompileTestCase):
def run(self, result=None): def run(self, result=None):
if result is None: if result is None:
result = self.defaultTestResult() result = self.defaultTestResult()
result.startTest(self)
try: try:
self.runTest() self.runTest()
doctest.DocTestSuite(self.module).run(result) doctest.DocTestSuite(self.module).run(result)
except Exception: except Exception:
result.startTest(self)
result.addError(self, sys.exc_info()) result.addError(self, sys.exc_info())
result.stopTest(self) result.stopTest(self)
try: try:
......
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