Just a follow-up.<div><br></div><div>If I add the options that I use with nosetests (--with-coverage --verbose --cover-package=mypackage) to my own optparser it works as expected.</div><div><br></div><div>I don&#39;t understand this, and preferably I don&#39;t need those dependencies in my main application..</div>

<div><br><div class="gmail_quote">On Tue, Oct 30, 2012 at 9:42 AM, Tim Aerdts <span dir="ltr">&lt;<a href="mailto:fragger123@gmail.com" target="_blank">fragger123@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">

Hello,<div><br></div><div>Posting this here because it seems more active then the Nosetests users list.</div><div>Anyway I am in the process of writing an application which makes use of Optparse. I&#39;m running the tests with Nosetests but I fear these two might be interfering?</div>


<div><br></div><div>When I run parser.parse_args() anywhere in my code Nosetests bugs out.</div><div><br></div><div><div>Usage: nosetests [options]</div><div>nosetests: error: no such option: --with-coverage</div><div><br>


</div><div>Removing the call to parse_args() and everything runs fine.</div><div><br></div><div>Cheers,</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br>Kind regards,<br>Tim Aerdts<br><a href="http://www.tuimz.nl" target="_blank">http://www.tuimz.nl</a><br>


</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Kind regards,<br>Tim Aerdts<br><a href="http://www.tuimz.nl">http://www.tuimz.nl</a><br>
</div>