From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 17 Dec 2023 11:20:46 +0000 (+0100) Subject: [3.12] gh-112890: `unittest` Test Discovery page updated "`unittest` dropped the... X-Git-Tag: v3.12.2~298 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48e1558c23ed1c818fa19c817c74d5d7d5d54781;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-112890: `unittest` Test Discovery page updated "`unittest` dropped the namspace packages support" (GH-113195) (GH-113228) (cherry picked from commit 21d52995ea490328edf9be3ba072821cd445dd30) Co-authored-by: Taylor Packard <3.t.packard@gmail.com> --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 2c84bad2b437..f821688d145b 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -346,8 +346,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 ` - support. It has been broken since Python 3.7. Start directory and + :mod:`unittest` dropped the :term:`namespace packages ` + 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.