reading argv argument of unittest.main()
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Thu May 10 20:11:08 EDT 2007
En Thu, 10 May 2007 14:42:56 -0300, <winston.yang at netrics.com> escribió:
> 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
More information about the Python-list
mailing list