<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Thu, Feb 25, 2016 at 2:23 PM Randy Syring &lt;<a href="mailto:randy@thesyrings.us">randy@thesyrings.us</a>&gt; 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&#39;m not sure if it makes a difference with generators, but I do know
    that py.test doesn&#39;t support &quot;setUp&quot; or &quot;tearDown&quot;.  You have to use
    &quot;setup&quot; and &quot;teardown&quot; I believe.<br></div></blockquote><div><br></div><div>Just a small correction, py.test supports &quot;setUp&quot; and &quot;tearDown&quot;, but only for xUnit subclasses (otherwise they wouldn&#39;t work out of the box). </div><div><br></div><div>For normal classes (that don&#39;t subclass TestCase), py.test recognizes &quot;setup_method&quot;/&quot;teardown_method&quot;, &quot;setup_class&quot;/&quot;teardown_class&quot; and &quot;setup_module&quot;/&quot;teardown_module&quot; 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>