[issue5989] unittest.TestLoader.loadTestsFromNames should accept module / class name

2009-05-10 Thread Michael Foord
Michael Foord added the comment: Actually they do - it is an obscure bug in the way the module is specified in TestProgram that prevents this from working. The code in parseArgs that is currently: if len(args) > 0: self.testNames = args Should probably be:

[issue5989] unittest.TestLoader.loadTestsFromNames should accept module / class name

2009-05-10 Thread Michael Foord
New submission from Michael Foord : It would be really nice if unittest.TestLoader.loadTestsFromNames accepted module and class names. My main motivation for that is so that I can do: python -m unittest module_name There is no backwards compatibility issue as currently this doesn't work...