Re: my module and unittest contend over commandline options...

2008-05-02 Thread chrisber
On May 2, 4:54 am, Duncan Booth <[EMAIL PROTECTED]> wrote: > chrisber<[EMAIL PROTECTED]> wrote: > > ...it leaves me > > wonderfing whether there would have been another clean way to allow > > both my test code and unittest to have options without interfering >

my module and unittest contend over commandline options...

2008-05-01 Thread chrisber
using the unittest module in Python 2.3.5, I've written some test code that ends up with if __name__ == "__main__": unittest.main() Since I want to run this code in various environments, I'd initially added some commandline options, e.g. to specify a configuration file like so test.py -