By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,272 Members | 1,733 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,272 IT Pros & Developers. It's quick & easy.

reading argv argument of unittest.main()

P: n/a
I've read that unittest.main() can take an optional argv argument, and
that if it is None, it will be assigned sys.argv.

Is there a way to pass command line arguments through unittest.main()
to the setUp method of a class derived from unittest.TestCase?

Thank you in advance.

Winston

May 10 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
En Thu, 10 May 2007 14:42:56 -0300, <wi**********@netrics.comescribió:
I've read that unittest.main() can take an optional argv argument, and
that if it is None, it will be assigned sys.argv.

Is there a way to pass command line arguments through unittest.main()
to the setUp method of a class derived from unittest.TestCase?
Can't you use sys.argv[] directly inside setUp()?

--
Gabriel Genellina

May 11 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.