[Zope3-checkins] SVN: zope.testing/trunk/src/zope/testing/testrunner/find.py Just override 'shortDescription' as Python 2.4's version uses a private attr.
Tres Seaver
tseaver at palladion.com
Sat Jun 26 11:23:32 EDT 2010
Log message for revision 113894:
Just override 'shortDescription' as Python 2.4's version uses a private attr.
Changed:
U zope.testing/trunk/src/zope/testing/testrunner/find.py
-=-
Modified: zope.testing/trunk/src/zope/testing/testrunner/find.py
===================================================================
--- zope.testing/trunk/src/zope/testing/testrunner/find.py 2010-06-26 12:07:41 UTC (rev 113893)
+++ zope.testing/trunk/src/zope/testing/testrunner/find.py 2010-06-26 15:23:31 UTC (rev 113894)
@@ -89,12 +89,6 @@
...
TypeError: If post_mortem is specified, full exc_info must be passed!
"""
-
- def _getTestMethodDoc(self):
- return 'StartUpFailure: import errors in %s.' % self.module
-
- _testMethodDoc = property(_getTestMethodDoc,)
-
def __init__(self, options, module, exc_info):
if options.post_mortem:
for item in exc_info:
@@ -105,6 +99,9 @@
self.module = module
self.exc_info = exc_info
+ def shortDescription(self):
+ return 'StartUpFailure: import errors in %s.' % self.module
+
def __repr__(self):
return '<StartUpFailure module=%s>' % self.module
More information about the Zope3-Checkins
mailing list