reading argv argument of unittest.main()

winston.yang at netrics.com winston.yang at netrics.com
Thu May 10 13:42:56 EDT 2007


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




More information about the Python-list mailing list