Skip to content

gh-59581: Move pkgutil.walk_packages test out of test_runpy - #162939

Open
kn1g78 wants to merge 1 commit into
python:mainfrom
kn1g78:main
Open

kn1g78 wants to merge 1 commit into
python:mainfrom
kn1g78:main

Conversation

@kn1g78

@kn1g78 kn1g78 commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Closes #59581.

Move the nested package coverage for pkgutil.walk_packages() from test_runpy to test_pkgutil, where it logically belongs.

The migrated test now uses the existing make_pkg() and make_script() helpers from test.support.script_helper instead of relying on test_runpy's private package-building infrastructure.

This also removes the outdated comment in test_pkgutil describing the test's temporary location.

@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Dec 1, 2026
@bedevere-app bedevere-app Bot added tests Tests in the Lib/test dir awaiting review labels Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor the test_runpy walk_package support code into a common location

1 participant