From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 17 Dec 2023 11:20:28 +0000 (+0100) Subject: [3.11] gh-112890: `unittest` Test Discovery page updated "`unittest` dropped the... X-Git-Tag: v3.11.8~253 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0b7fee7cb88cdd3287ecf262ef74ff2dbe145c8;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-112890: `unittest` Test Discovery page updated "`unittest` dropped the namspace packages support" (GH-113195) (GH-113229) (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 1a3d1d132a1e..edb574014548 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -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 ` - 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.