[pytest-dev] [discuss] solving the yield test setupstate problem and expanding on it

Ronny Pfannschmidt opensource at ronnypfannschmidt.de
Wed Feb 11 00:48:23 CET 2015


Hi,

since i did hit the generator test i started to create a proof of concept 
on solving it by creating the pytest_pyfunc_interpret_result hook.

now instead of running at collect time, generators checks run inline

this currently degrades reporting
* breaks on first fail
* no separate reports per check

and it degrades nose support 
* no generator check setup/teardown

while i suppose its possible to extend generator support with teardown in a 
hackish fashin i think going for a clean solution makes more sense

is anyone propperly using these features?


onwards i'd like to check how to extend pytest_pyfunc_interpret_result with 
convenience for asyncio and twisted


-- Ronny


More information about the pytest-dev mailing list