Skip to content
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

Move test_namespace_pkgs into test_importlib. #65296

Closed
ericsnowcurrently opened this issue Mar 29, 2014 · 7 comments
Closed

Move test_namespace_pkgs into test_importlib. #65296

ericsnowcurrently opened this issue Mar 29, 2014 · 7 comments
Labels
type-feature A feature request or enhancement

Comments

@ericsnowcurrently
Copy link
Member

BPO 21097
Nosy @warsaw, @brettcannon, @ncoghlan, @ericvsmith, @ericsnowcurrently

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:

assignee = None
closed_at = <Date 2014-03-29.22:16:44.276>
created_at = <Date 2014-03-29.21:21:24.847>
labels = ['type-feature']
title = 'Move test_namespace_pkgs into test_importlib.'
updated_at = <Date 2014-04-09.01:57:35.859>
user = 'https://github.com/ericsnowcurrently'

bugs.python.org fields:

activity = <Date 2014-04-09.01:57:35.859>
actor = 'python-dev'
assignee = 'none'
closed = True
closed_date = <Date 2014-03-29.22:16:44.276>
closer = 'eric.snow'
components = []
creation = <Date 2014-03-29.21:21:24.847>
creator = 'eric.snow'
dependencies = []
files = []
hgrepos = []
issue_num = 21097
keywords = []
message_count = 7.0
messages = ['215145', '215149', '215153', '215156', '215157', '215158', '215795']
nosy_count = 6.0
nosy_names = ['barry', 'brett.cannon', 'ncoghlan', 'eric.smith', 'python-dev', 'eric.snow']
pr_nums = []
priority = 'low'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue21097'
versions = ['Python 3.4', 'Python 3.5']

@ericsnowcurrently
Copy link
Member Author

While working on bpo-19711 it dawned on me that test_namespace_pkgs might be more appropriate as a submodule of test_importlib. The feature doesn't have it's own module nor is it otherwise independent of importlib.

I don't want to introduce churn here for the sake of conceptual purity. Rather, the module would be more discoverable if associated with importlib in this way. For bpo-19711 I wrote a test case that was overly complicated and did not work (goes hand-in-hand, no?) that I would not have spent time on if I'd remembered about test_namespace_pkgs or seen it somewhere under test_import*.

As a bonus, this change moves 1 file and 1 directory out of Lib/test (a directory that takes "flat is better than nested" to the extreme).

Any objections?

@ericsnowcurrently ericsnowcurrently added the type-feature A feature request or enhancement label Mar 29, 2014
@ncoghlan
Copy link
Contributor

Fine by me.

@ericvsmith
Copy link
Member

Makes sense to me.

@python-dev
Copy link
Mannequin

python-dev mannequin commented Mar 29, 2014

New changeset 6d44bd8066ee by Eric Snow in branch 'default':
Issue bpo-21097: Move test_namespace_pkgs into test_importlib.
http://hg.python.org/cpython/rev/6d44bd8066ee

@python-dev
Copy link
Mannequin

python-dev mannequin commented Mar 29, 2014

New changeset 48790b202a50 by Eric Snow in branch '3.4':
Issue bpo-21097: Move test_namespace_pkgs into test_importlib.
http://hg.python.org/cpython/rev/48790b202a50

@ericsnowcurrently
Copy link
Member Author

I seriously need to remember to apply to 3.4 and merge forward! :P

@python-dev
Copy link
Mannequin

python-dev mannequin commented Apr 9, 2014

New changeset 99265d30fa38 by Ned Deily in branch '3.4':
Issue bpo-21097: Update Makefile with changed install locations of test directories.
http://hg.python.org/cpython/rev/99265d30fa38

New changeset 7aae2b9fcfad by Ned Deily in branch 'default':
Issue bpo-21097: merge from 3.4
http://hg.python.org/cpython/rev/7aae2b9fcfad

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants