<div dir="ltr">Thanks, Jason. That makes sense.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 10, 2014 at 6:55 PM, Jason Michalski <span dir="ltr">&lt;<a href="mailto:armooo@armooo.net" target="_blank">armooo@armooo.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi David,<br>
<br>
It looks like manage.py runfcgi defaults to using a pre-forking mode<br>
where a pool of processes handle the requests. By default coverage is<br>
only able to install its trace function in the main process. Also the<br>
threaded mode of flup uses the low level thread module which coverage<br>
also can not track. Directions for tracking subprocess coverage are<br>
here <a href="http://nedbatchelder.com/code/coverage/subprocess.html" target="_blank">http://nedbatchelder.com/code/coverage/subprocess.html</a> .<br>
-- jason<br>
<div><div class="h5"><br>
<br>
On Mon, Mar 10, 2014 at 3:50 PM, David Wyde &lt;<a href="mailto:david.wyde@gmail.com">david.wyde@gmail.com</a>&gt; wrote:<br>
&gt; Greetings,<br>
&gt;<br>
&gt; I can&#39;t seem to get coverage.py to work with Django + FastCGI (manage.py<br>
&gt; runfcgi). The alternative `coverage run manage.py runserver --noreload`<br>
&gt; works.<br>
&gt;<br>
&gt; A sample project is available at <a href="https://github.com/dwyde/cover_django" target="_blank">https://github.com/dwyde/cover_django</a> -<br>
&gt; please see the README for full details.<br>
&gt;<br>
&gt; Any ideas?<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; David<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; testing-in-python mailing list<br>
&gt; <a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
&gt; <a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
&gt;<br>
</blockquote></div><br></div>