>>> import traceback
>>> from zope.exceptions.exceptionformatter import print_exception
>>> traceback.print_exception = print_exception
Showing posts with label zope 3. Show all posts
Showing posts with label zope 3. Show all posts
2007-04-19
Debugging page templates in doctests
Sometimes you get a page template error in doctests. The traceback does not point to the place in the page template that caused the error. Here's a quick, dirty and effective three liner to figure it out:
Subscribe to:
Posts (Atom)