BPO | [14817](https://bugs.python.org/issue14817) --- | :--- Nosy | @pitrou, @ericvsmith, @Windsooon PRs | python/cpython#12871 *Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.* Show more details GitHub fields: ```python assignee = None closed_at = None created_at = labels = ['easy', 'type-feature', '3.8', '3.9', '3.7', 'tests'] title = 'pkgutil.extend_path has no tests' updated_at = user = 'https://github.com/ericvsmith' ``` bugs.python.org fields: ```python activity = actor = 'nanjekyejoannah' assignee = 'none' closed = False closed_date = None closer = None components = ['Tests'] creation = creator = 'eric.smith' dependencies = [] files = [] hgrepos = [] issue_num = 14817 keywords = ['patch', 'easy'] message_count = 10.0 messages = ['160751', '160784', '160785', '160792', '160809', '221843', '338577', '338934', '339764', '340465'] nosy_count = 4.0 nosy_names = ['pitrou', 'eric.smith', 'Arfrever', 'Windson Yang'] pr_nums = ['12871'] priority = 'normal' resolution = None stage = 'patch review' status = 'open' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue14817' versions = ['Python 3.7', 'Python 3.8', 'Python 3.9'] ``` ### Linked PRs * gh-121673 * gh-121950 * gh-121951
Activity
ericvsmith commentedon May 15, 2012
Subject says it all.
There are also no tests of .pkg files.
python-dev commentedon May 16, 2012
New changeset 48cb6b67d306 by Eric V. Smith in branch '3.2':
Issue bpo-14817: Add rudimentary tests for pkgutil.extend_path.
http://hg.python.org/cpython/rev/48cb6b67d306
ericvsmith commentedon May 16, 2012
I'm going to leave this open until better tests are added. The one I did add it very simple, but it's good enough for the changes I'm about to make.
ericvsmith commentedon May 16, 2012
This code does not clean up correctly. It needs to remove the added modules in sys.modules. I'll eventually clean it up, once bpo-14715 is addressed.
pitrou commentedon May 16, 2012
This has broken all 3.x buildbots.
BreamoreBoy commentedon Jun 29, 2014
@eric will you pick this up again?
Windsooon commentedon Mar 22, 2019
I would like to work on this and make a PR.
Windsooon commentedon Mar 27, 2019
My base idea would be some unittests for the function like:
I would move forward if we agreed.
nanjekyejoannah commentedon Apr 9, 2019
@windson please open a PR for review with your code.
1 remaining item
pythongh-59022: Added tests for `pkgutil.extend_path` (python#59022)
pythongh-59022: Added tests for `pkgutil.extend_path` (python#59022)
pythongh-59022: Added tests for `pkgutil.extend_path` (python#59022)
pythongh-59022: Added tests for `pkgutil.extend_path` (python#59022)
pythongh-59022: Removed comment from test and rely on the documentati…
gh-59022: Added tests for `pkgutil.extend_path` (#59022) (GH-121673)
pythongh-59022: Added tests for `pkgutil.extend_path` (pythonGH-59022) (
pythongh-59022: Added tests for `pkgutil.extend_path` (python#59022) (p…
pythongh-59022: Added tests for `pkgutil.extend_path` (pythonGH-59022) (
pythongh-59022: Added tests for `pkgutil.extend_path` (pythonGH-59022) (
[3.13] gh-59022: Added tests for `pkgutil.extend_path` (GH-121673) (G…
[3.12] gh-59022: Added tests for `pkgutil.extend_path` (GH-121673) (G…
encukou commentedon Jul 19, 2024
Thank you!