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

./python -m unittest test.test_importlib doesn't work #52562

Closed
warsaw opened this issue Apr 5, 2010 · 6 comments
Closed

./python -m unittest test.test_importlib doesn't work #52562

warsaw opened this issue Apr 5, 2010 · 6 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@warsaw
Copy link
Member

warsaw commented Apr 5, 2010

BPO 8315
Nosy @warsaw, @terryjreedy, @ezio-melotti, @merwok, @bitdancer, @voidspace, @berkerpeksag

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 = 'https://github.com/voidspace'
closed_at = <Date 2014-09-07.10:09:56.189>
created_at = <Date 2010-04-05.15:36:31.029>
labels = ['type-bug', 'library']
title = "./python -m unittest test.test_importlib doesn't work"
updated_at = <Date 2014-09-07.10:09:56.187>
user = 'https://github.com/warsaw'

bugs.python.org fields:

activity = <Date 2014-09-07.10:09:56.187>
actor = 'berker.peksag'
assignee = 'michael.foord'
closed = True
closed_date = <Date 2014-09-07.10:09:56.189>
closer = 'berker.peksag'
components = ['Library (Lib)']
creation = <Date 2010-04-05.15:36:31.029>
creator = 'barry'
dependencies = []
files = []
hgrepos = []
issue_num = 8315
keywords = []
message_count = 6.0
messages = ['102377', '113023', '113053', '155676', '155677', '226532']
nosy_count = 8.0
nosy_names = ['barry', 'terry.reedy', 'ezio.melotti', 'eric.araujo', 'r.david.murray', 'michael.foord', 'python-dev', 'berker.peksag']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue8315'
versions = ['Python 3.2']

@warsaw
Copy link
Member Author

warsaw commented Apr 5, 2010

Actually, ./python -m unittest test.test_email doesn't work either and those are two cases where the Lib/test module just forwards to the package's own test suite, so maybe that's the problem.

@warsaw warsaw added the stdlib Python modules in the Lib dir label Apr 5, 2010
@terryjreedy
Copy link
Member

I am just responding so this will not show up on the 'unanswered issues' list.

@voidspace
Copy link
Contributor

I'd still like to see this fixed. Some of the features of regrtest will need to be implemented as plugins for unittest (but not many - a lot of the features of regrtest are already obsolete).

@python-dev
Copy link
Mannequin

python-dev mannequin commented Mar 13, 2012

New changeset 217fdeeaf6e0 by R David Murray in branch 'default':
bpo-8315: add automatic unittest test discovery in test.test_email
http://hg.python.org/cpython/rev/217fdeeaf6e0

@bitdancer
Copy link
Member

I fixed this for test_email by adding automatic unit test discovery to test_email.__init__.

I believe it should be possible for a similar thing to do be done for test_importlib.

@berkerpeksag
Copy link
Member

test_importlib has been fixed in bpo-22002.

    $ ./python -m unittest test.test_importlib
\----------------------------------------------------------------------
Ran 963 tests in 1.533s

OK (skipped=15, expected failures=1)

@berkerpeksag berkerpeksag added the type-bug An unexpected behavior, bug, or error label Sep 7, 2014
@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
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

5 participants