Commit 0f1e9f55 authored by Ranjith Kannikara's avatar Ranjith Kannikara

The doc test has been slightly changed in ZPublisher to get the error message...

The doc test has been slightly changed in ZPublisher to get the error message extracted correctly        .
parent f6669501
......@@ -419,6 +419,8 @@ Zope Changes
- The Wrapper_compare function from tp_compare to tp_richcompare.
Also another function Wrapper_richcompare is added.
- The doc test has been slightly changed in ZPublisher to get the error message extracted correctly .
Other Changes
......
......@@ -29,7 +29,8 @@ class Tracer:
exception = exceptions[0]
exceptions.remove(exception)
exceptionShortName = str(exception).split('.')[-1]
self.append('raising %s from %s' % (exceptionShortName, context))
exceptionShortName = exceptionShortName.split("'")[0]
self.append('raising %s from %s' % (exceptionShortName, context))
raise exception
......
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