From b5af70efe3f9eaedd1ca6eb4aa96c072acfdd662 Mon Sep 17 00:00:00 2001 From: Taylor Packard <3.t.packard@gmail.com> Date: Fri, 15 Dec 2023 15:48:15 -0500 Subject: [PATCH 1/2] updated language around namespace packages --- Doc/library/unittest.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 9aad96bdf11bf8b..6cfbedfec5d6054 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 + 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. From 96591af551bedb88c9d0ada2a225f7966f41b758 Mon Sep 17 00:00:00 2001 From: Taylor Packard <3.t.packard@gmail.com> Date: Fri, 15 Dec 2023 15:53:22 -0500 Subject: [PATCH 2/2] updated language around namespace packages --- Doc/library/unittest.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 6cfbedfec5d6054..70b4c84c05f818a 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -346,7 +346,7 @@ the `load_tests protocol`_. ``python -m unittest discover -s root/namespace -t root``). .. versionchanged:: 3.11 - unittest dropped the :term:`namespace packages ` + :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.