[issue23882] unittest discovery doesn't detect namespace packages when given no parameters
Terry J. Reedy
report at bugs.python.org
Mon Feb 22 13:57:38 EST 2021
Terry J. Reedy <tjreedy at udel.edu> added the comment:
>From the merge:
+++ b/Doc/library/unittest.rst
@@ -330,7 +330,9 @@ Test modules and packages can customize test loading and discovery by through
the `load_tests protocol`_.
.. versionchanged:: 3.4
- Test discovery supports :term:`namespace packages <namespace package>`.
+ Test discovery supports :term:`namespace packages <namespace package>`
+ for start directory. Note that you need to the top level directory too.
+ (e.g. ``python -m unittest discover -s root/namespace -t root``).
The last sentence is missing a verb after 'you need to' saying what to do about "the top level directory. "be in"? "go to"? "later destroy"? (just kidding ;-)
----------
nosy: +terry.reedy
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue23882>
_______________________________________
More information about the Python-bugs-list
mailing list