Skip to content

unittest Test Discovery page says "Python 3.11 dropped the namespace packages support," which is inaccurate #112890

@rodrigodesalvobraz

Description

@rodrigodesalvobraz

Documentation

The documentation for unittest Test Discovery says: "Changed in version 3.11: Python 3.11 dropped the namespace packages support. It has been broken since Python 3.7. Start directory and subdirectories containing tests must be regular package that have init.py file."

I believe the most straightforward interpretation of this statement is that Python, as a whole, has dropped namespace packages, which I believe is false. I think the intended interpretation is "Changed in version 3.11: unittest dropped the 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.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions