[issue7780] unittest: allow an 'import_path' as an alternative to 'top_level_dir' in test discover
report at bugs.python.org
Sat Feb 6 01:31:25 CET 2010
Michael Foord <michael at voidspace.org.uk> added the comment:
My suggestion is that test discovery should first try the argument as a directory. If that fails try it as a dotted name by importing it. If the import succeeds discovery can start from the directory containing the imported package.
If a module rather than a package is specified as a dotted name argument to test discovery then we can either just run the tests in that module or raise an error?
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list