[py-dev] Bug in collect.Error

Jan Balster jan at balster.info
Tue Mar 15 20:02:07 CET 2005


hi Holger,

holger krekel wrote:

> i just committed this to the trunk although this will
> likely become obsolete soon when the "py-collect" branch is 
> merged back into the trunk (intended to unify and clean up
> the test collection process) ... 

i just finished a small tkinter gui for py.test with a tree view for all
collectors and items.
the main part is a gui-reporter, which sends information through a
extpy.channel to the gui. i think, i have to use a subclass of driver now.

the new FailureCollector in run.py is great. i had a problem to get the
right name (like collector.listnames()) for a failed item returned by
the old FailureCollector. thats much easier now, thank you.

what kind of object is root in FailureCollector:
   "for root, names in failures"?
i think, it should be a collect.Directory or collect.Module, but sending
them through a extpy.channel doesn't work:
eval(repr(directory_object)) != directory_object

terminaldriver.run() (--> driver.run()) returns nothing (None), so i
can't deduce the object type from the source.

cheers,

    jan



More information about the Pytest-dev mailing list