[New-bugs-announce] [issue11683] unittest discover should recurse into packages which are already in sys.path

Calvin Spealman report at bugs.python.org
Sat Mar 26 15:36:42 CET 2011


New submission from Calvin Spealman <ironfroggy at gmail.com>:

For example, if I had a project with a "src/" directory and inside that directory is a package named "foo", then I can run "python3 -m unittest discover -s ." and the tests will be not be found, but I can run "python3 -m unittest discover -s src/" and the tests in the foo package are run. This is because it can only find things which are in the python path, but if I have src/ on the path (I ran "add2virtualenv src/" at some point) then discover should know it can traverse inside this directory.

----------
messages: 132242
nosy: Calvin.Spealman
priority: normal
severity: normal
status: open
title: unittest discover should recurse into packages which are already in sys.path
type: feature request
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11683>
_______________________________________


More information about the New-bugs-announce mailing list