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"><<a href="mailto:exarkun@twistedmatrix.com" target="_blank">exarkun@twistedmatrix.com</a>></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>
>Hey,<br>
><br>
>What is the appropriate way to run twistd apps in such a way that I get<br>
>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 "-W::DeprecationWarning:"<br>
<br>
Jean-Paul<br>
<div class="im">>I ran into an issue with one of my apps with the new release because<br>
>t.w.error.NoResource is now t.w.resource.NoResource, I would like to<br>
>make<br>
>my code as forward compatible as possible as we go along, of course :)<br>
><br>
>(Actually this issue was because I stole some non-released code from<br>
>#4173,<br>
>which wasn't being tested, but the not being tested part is now fixed.)<br>
><br>
>--<br>
>cheers<br>
>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>