[issue23882] unittest discovery doesn't detect namespace packages when given no parameters
Robert Collins
report at bugs.python.org
Fri Aug 21 02:57:17 CEST 2015
Robert Collins added the comment:
reviewed in rietvald, but here too just in case.
The hunk that saves/restores _top_level_dir feels wrong to me - and not part of this bug, please remove it.
The rest of the patch is fine today.
But it also needs to add two specifically namespace tests: concretely we need the following cases covered:
a) namespace subdir/namespace subdir/test_foo.py gets loaded
b) namespace subdir/test_foo.py with another instance of the namespace subdir on sys.path also containing e.g. test_bar.py, test_bar.py is not loaded.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23882>
_______________________________________
More information about the Python-bugs-list
mailing list