[TIP] nose test generators under py.test

Fred Drake fred at fdrake.net
Thu Feb 25 12:56:45 PST 2016


On Thu, Feb 25, 2016 at 3:06 PM, Bruno Oliveira <nicoddemus at gmail.com> wrote:
> Just a small correction, py.test supports "setUp" and "tearDown", but only
> for xUnit subclasses (otherwise they wouldn't work out of the box).

This seems to be exactly where I've run into a problem, though:  I am using a
unittest.TestCase-derived test class, and setUp / tearDown aren't being used.


  -Fred

-- 
Fred L. Drake, Jr.    <fred at fdrake.net>
"A storm broke loose in my mind."  --Albert Einstein



More information about the testing-in-python mailing list