[Zope-Checkins] SVN: Zope/trunk/lib/python/ZPublisher/tests/testPublish.py Remove bogus doctest artifacts under Python 2.5.
Tres Seaver
tseaver at palladion.com
Sun Aug 24 13:07:07 EDT 2008
Log message for revision 90175:
Remove bogus doctest artifacts under Python 2.5.
Changed:
U Zope/trunk/lib/python/ZPublisher/tests/testPublish.py
-=-
Modified: Zope/trunk/lib/python/ZPublisher/tests/testPublish.py
===================================================================
--- Zope/trunk/lib/python/ZPublisher/tests/testPublish.py 2008-08-24 14:45:58 UTC (rev 90174)
+++ Zope/trunk/lib/python/ZPublisher/tests/testPublish.py 2008-08-24 17:07:05 UTC (rev 90175)
@@ -28,7 +28,7 @@
if exceptions:
exception = exceptions[0]
exceptions.remove(exception)
- exceptionShortName = str(exception).split('.')[-1]
+ exceptionShortName = exception.__name__
self.append('raising %s from %s' % (exceptionShortName, context))
raise exception
More information about the Zope-Checkins
mailing list