[3.11] gh-112890: unittest Test Discovery page updated "unittest dropped the namspace packages support" (GH-113195) (GH-113229)

(cherry picked from commit 21d52995ea)

Co-authored-by: Taylor Packard <3.t.packard@gmail.com>
This commit is contained in:
Miss Islington (bot) 2023-12-17 12:20:28 +01:00 committed by GitHub
parent fbaf00ee57
commit b0b7fee7cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -340,8 +340,8 @@ the `load_tests protocol`_.
``python -m unittest discover -s root/namespace -t root``).
.. versionchanged:: 3.11
Python 3.11 dropped the :term:`namespace packages <namespace package>`
support. It has been broken since Python 3.7. Start directory and
:mod:`unittest` dropped the :term:`namespace packages <namespace package>`
support in Python 3.11. It has been broken since Python 3.7. Start directory and
subdirectories containing tests must be regular package that have
``__init__.py`` file.