On Mon, Jan 18, 2010 at 12:00 +0100, Ronny Pfannschmidt wrote: > hi, > > i just finished the initial version of the traceback filter hook > while it was just as simple as holger said, i lack an idea on how to > handle errors in that hook. > > btw, the current patch is http://paste.pocoo.org/show/166660/ > > > so it spills out a nasty/huge internalerror if i make misstakes in my > own implementations of that hook within a conftest.
for now, i'd catch the exception and just use the un-abbreviated traceback. Maybe you can issue a hook.pytest_trace("filter_traceback", msg) which one could see if "--debug" or "--traceconfig" is given. holger > tests will be written once i figure the error handling > > -- Ronny > > _______________________________________________ > py-dev mailing list > py-dev@codespeak.net > http://codespeak.net/mailman/listinfo/py-dev > -- _______________________________________________ py-dev mailing list py-dev@codespeak.net http://codespeak.net/mailman/listinfo/py-dev