Skip to content

gh-112890: unittest Test Discovery page updated "unittest dropped the namspace packages support" #113195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 17, 2023

Conversation

tpackard1
Copy link
Contributor

@tpackard1 tpackard1 commented Dec 15, 2023

Updated the language in documenttation for unittest Test Discovery to say the following: "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."

This update was based on gh-112890


📚 Documentation preview 📚: https://cpython-previews--113195.org.readthedocs.build/

@serhiy-storchaka serhiy-storchaka added needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes labels Dec 17, 2023
@serhiy-storchaka serhiy-storchaka merged commit 21d5299 into python:main Dec 17, 2023
@miss-islington-app
Copy link

Thanks @tpackard1 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 17, 2023
…ropped the namspace packages support" (pythonGH-113195)

(cherry picked from commit 21d5299)

Co-authored-by: Taylor Packard <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Dec 17, 2023

GH-113228 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Dec 17, 2023
@bedevere-app
Copy link

bedevere-app bot commented Dec 17, 2023

GH-113229 is a backport of this pull request to the 3.11 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 17, 2023
…ropped the namspace packages support" (pythonGH-113195)

(cherry picked from commit 21d5299)

Co-authored-by: Taylor Packard <[email protected]>
@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Dec 17, 2023
serhiy-storchaka pushed a commit that referenced this pull request Dec 17, 2023
…dropped the namspace packages support" (GH-113195) (GH-113229)

(cherry picked from commit 21d5299)

Co-authored-by: Taylor Packard <[email protected]>
serhiy-storchaka pushed a commit that referenced this pull request Dec 17, 2023
…dropped the namspace packages support" (GH-113195) (GH-113228)

(cherry picked from commit 21d5299)

Co-authored-by: Taylor Packard <[email protected]>
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants