[TIP] setup_method not called for generative tests

Pere Martir pere.martir4 at gmail.com
Fri Feb 25 07:49:45 PST 2011


I found that setup_method and teardown_method are not called for the tests
generated by pytest_generate_tests(). Therefore I have to manually call them
in each test method. I also found a post which supported this observation:

http://www.mail-archive.com/py-dev@codespeak.net/msg00143.html

Is there any reason that this behavior is by design or it's a bug ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20110225/e0b05025/attachment.htm>


More information about the testing-in-python mailing list