<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Thu, Feb 25, 2016 at 2:23 PM Randy Syring <<a href="mailto:randy@thesyrings.us">randy@thesyrings.us</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
I'm not sure if it makes a difference with generators, but I do know
that py.test doesn't support "setUp" or "tearDown". You have to use
"setup" and "teardown" I believe.<br></div></blockquote><div><br></div><div>Just a small correction, py.test supports "setUp" and "tearDown", but only for xUnit subclasses (otherwise they wouldn't work out of the box). </div><div><br></div><div>For normal classes (that don't subclass TestCase), py.test recognizes "setup_method"/"teardown_method", "setup_class"/"teardown_class" and "setup_module"/"teardown_module" for method, class and module level fixtures[1]. </div><div><br></div><div>[1] <a href="http://pytest.org/latest/xunit_setup.html">http://pytest.org/latest/xunit_setup.html</a></div><div><br></div><div>Cheers,</div><div>Bruno.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
</blockquote></div></div>