Huh. I have complete unit test coverage and was using trial, but somehow I managed to miss that... I guess I will have to pay more attention or something?! I will try to recreate a situation where the warnings should pop up.<br>

<br>Thanks!<br><br><br><br><div class="gmail_quote">On Wed, Sep 5, 2012 at 9:11 PM,  <span dir="ltr">&lt;<a href="mailto:exarkun@twistedmatrix.com" target="_blank">exarkun@twistedmatrix.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On 06:41 pm, _@lvh.cc wrote:<br>
&gt;Hey,<br>
&gt;<br>
&gt;What is the appropriate way to run twistd apps in such a way that I get<br>
&gt;nice and loud deprecation warnings?<br>
<br>
</div>1) Have complete unit test coverage and run your tests with trial.  All<br>
deprecation warnings will be written out as part of the test suite run.<br>
<br>
2) Run twistd with Python 2.6<br>
<br>
3) Run twistd with Python 2.7 and pass &quot;-W::DeprecationWarning:&quot;<br>
<br>
Jean-Paul<br>
<div class="im">&gt;I ran into an issue with one of my apps with the new release because<br>
&gt;t.w.error.NoResource is now t.w.resource.NoResource, I would like to<br>
&gt;make<br>
&gt;my code as forward compatible as possible as we go along, of course :)<br>
&gt;<br>
&gt;(Actually this issue was because I stole some non-released code from<br>
&gt;#4173,<br>
&gt;which wasn&#39;t being tested, but the not being tested part is now fixed.)<br>
&gt;<br>
&gt;--<br>
&gt;cheers<br>
&gt;lvh<br>
<br>
</div>_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>cheers<div>lvh</div><br>