<br><br><div class="gmail_quote">On Thu, Jul 29, 2010 at 12:04 PM, Olemis Lang <span dir="ltr">&lt;<a href="mailto:olemis@gmail.com">olemis@gmail.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 Thu, Jul 29, 2010 at 10:07 AM, Barry Warsaw &lt;<a href="mailto:barry@python.org">barry@python.org</a>&gt; wrote:<br>
&gt; On Jul 28, 2010, at 07:49 AM, Olemis Lang wrote:<br>
&gt;<br>
&gt;&gt;&gt;&gt; +1 for including the tests by default.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Agreed 100x with Barry -<br>
&gt;&gt;<br>
&gt;&gt;IMO, tests shouldn&#39;t be installed in production systems ...<br>
&gt;<br>
&gt; It&#39;s certainly within the decisions of platform packagers to separate tests<br>
&gt; from the code, but I&#39;d argue that it&#39;s not worth it.  I just don&#39;t see what<br>
&gt; advantage *not* including the tests gives you.<br>
<br>
</div>  - Nobody (human, software, ...) is gonna execute *accidentally* the tests<br>
    in a production server (e.g. running server will not wait until<br>
finishing the<br>
    3h test run to acquire global lock or connection ...)<br>
  - Space is preserved . That&#39;s something important if talking about<br>
    using the package in constrained environments (e.g. limited devices,<br>
    shared hosting, ...) . This also makes me recall decisions like<br>
    splitting stdlib in order to build custom (as small as possible,<br>
    yet functional) installers for Python itself</blockquote><div><br></div><div>If you are trying to split the stdlib to build a custom installer for Python, then you </div><div>are:</div><div>* already going through massive amounts of work which doesn&#39;t compare to removing tests from a package</div>
<div>* in a very unique case (e.g. this is not a common situation)</div><div><br></div><div>Personally, I would not care to support the idea of removing my tests from my package</div><div>just to be able to fit in that situation.</div>
<div><br></div><div>And about Shared Hosting: unless you have over 500MB in tests, I do not see this as an issue.</div><div><br></div><div>If you are trying to run a python package in a restricted device, why wouldn&#39;t you want to run some tests?</div>
<div><br></div><div>And if the tests don&#39;t fit in the device... why would you want to use it to start with? </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
.<br>
  - Python test suite is *optionally* installed -at least in Windows-,<br>
isn&#39;t it ?<br>
    So it seems it&#39;s worth it for all packages in stdlib under certain<br>
    conditions .<br>
  - It&#39;s always possible to install the test package at any time and do<br>
    whatever with it , as well as remove it later.<br>
<div class="im"><br>
&gt; And arguably it can make for<br>
&gt; more complicated packaging,<br>
&gt;<br>
<br>
</div>Yes definitely , but I&#39;d say complex (since «complex is better than<br>
complicated» ;o)<br>
<div class="im"><br>
&gt; Sure, there are exceptions, and big frameworks/packages might want to do<br>
&gt; things differently.  But I&#39;d argue that the *majority* of Python packages are<br>
&gt; fairly simple and straightforward and it&#39;s better (and easier!) to just<br>
&gt; include the tests.<br>
&gt;<br>
<br>
</div>Well, «practicality (will always) beat purity» (and that&#39;s why I first<br>
mentioned that I&#39;d like to do something like this , but currently I<br>
don&#39;t &#39;cause, in practice, I&#39;ve not had the time to think about how to<br>
do it «perfect» &amp; easy ;o) .<br>
<br>
PS: I understand that probably there&#39;s not a universal solution for<br>
all kind of packages .<br>
<div class="im"><br>
--<br>
Regards,<br>
<br>
Olemis.<br>
<br>
Blog ES: <a href="http://simelo-es.blogspot.com/" target="_blank">http://simelo-es.blogspot.com/</a><br>
Blog EN: <a href="http://simelo-en.blogspot.com/" target="_blank">http://simelo-en.blogspot.com/</a><br>
<br>
Featured article:<br>
</div>Dibujando figuras geométricas con Eukleides y LATEX -<br>
<a href="http://feedproxy.google.com/~r/simelo-es/~3/o7jBqp97elc/dibujando-figuras-geometricas-con.html" target="_blank">http://feedproxy.google.com/~r/simelo-es/~3/o7jBqp97elc/dibujando-figuras-geometricas-con.html</a><br>

<div><div></div><div class="h5"><br>
_______________________________________________<br>
testing-in-python mailing list<br>
<a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
</div></div></blockquote></div><br>