diff --git a/osgtest/library/osgunittest.py b/osgtest/library/osgunittest.py index e97a48c4..368abaa4 100644 --- a/osgtest/library/osgunittest.py +++ b/osgtest/library/osgunittest.py @@ -245,6 +245,12 @@ def run(self, result=None, **kwargs): finally: result.stopTest(self) + def __str__(self): + module = self.__class__.__module__ + if '.' in module: + module = module[module.rfind('.')+1:] # strip off all but the last component + return "%s.py: %s" % (module, self._testMethodName) + class OSGTestResult(unittest.TestResult): """