Skip to content

Commit

Permalink
[3.11] gh-112890: unittest Test Discovery page updated "unittest
Browse files Browse the repository at this point in the history
…dropped the namspace packages support" (GH-113195) (GH-113229)

(cherry picked from commit 21d5299)

Co-authored-by: Taylor Packard <3.t.packard@gmail.com>
  • Loading branch information
miss-islington and tpackard1 committed Dec 17, 2023
1 parent fbaf00e commit b0b7fee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/unittest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit b0b7fee

Please sign in to comment.