Re: [Pyunit-interest] Re: testRunner argument of unittest.main()
Brought to you by:
purcell
From: robin a. j. <rob...@ea...> - 2003-05-13 23:41:37
|
You might consider using the getopt module to parse the return value from sys.argv. ----- Original Message ----- From: "Matthew F. Barnes" <mf...@lo...> To: <pyu...@li...> Sent: Tuesday, May 13, 2003 05:15 PM Subject: [Pyunit-interest] Re: testRunner argument of unittest.main() > Jim Vickroy said: > > Since it gives access to the command line parameters, would sys.argv > > meet your needs? > > > Not the most "clean" solution, but it would probably work. By that I mean > that generally (for me, anyway) the desire is to parse all the > command-line arguments *once* in a program. The unittest.main() routine > is already doing that work, and the software engineer in me would hate to > see that logic replicated elsewhere in the same program. > > Of course I wasn't asking for the *best* solution, just *a* solution. So > you did answer my question. I appreciate the feedback. > > Matthew Barnes > ma...@ba... > > > > > > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > The only event dedicated to issues related to Linux enterprise solutions > www.enterpriselinuxforum.com > > _______________________________________________ > Pyunit-interest mailing list > Pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyunit-interest |