[TIP] Testing optparse with Nosetests
Tim Aerdts
fragger123 at gmail.com
Tue Oct 30 01:42:49 PDT 2012
Hello,
Posting this here because it seems more active then the Nosetests users
list.
Anyway I am in the process of writing an application which makes use of
Optparse. I'm running the tests with Nosetests but I fear these two might
be interfering?
When I run parser.parse_args() anywhere in my code Nosetests bugs out.
Usage: nosetests [options]
nosetests: error: no such option: --with-coverage
Removing the call to parse_args() and everything runs fine.
Cheers,
--
Kind regards,
Tim Aerdts
http://www.tuimz.nl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20121030/b926b65f/attachment.html>
More information about the testing-in-python
mailing list