
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2016-03-25 12:00 byvstinner, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| doctest_package.patch | vstinner,2016-03-25 12:00 | review | ||
| Messages (3) | |||
|---|---|---|---|
| msg262429 -(view) | Author: STINNER Victor (vstinner)*![]() | Date: 2016-03-25 12:00 | |
ThePEP 420 -- Implicit Namespace Packages introduces packages which have no __init__.py file and can be made of multiple packages. It looks like doctest doesn't support them.I would like to convert theLib/test/ of the Python standard library into such package for the issue#26295.I propose to use an heuristic when the package is only made of one directory (when module.__path__ only contains one entry): use this directory to lookup for requested test files.Attached patch implements that. | |||
| msg262637 -(view) | Author: Roundup Robot (python-dev)![]() | Date: 2016-03-29 23:30 | |
New changeset32539353eb95 by Victor Stinner in branch 'default':doctest now supports packageshttps://hg.python.org/cpython/rev/32539353eb95 | |||
| msg262638 -(view) | Author: STINNER Victor (vstinner)*![]() | Date: 2016-03-29 23:31 | |
I pushed a different fix using module.__path__ since my use case is the test module splitted into at least two directories. | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:29 | admin | set | github: 70828 |
| 2016-03-29 23:31:02 | vstinner | set | status: open -> closed resolution: fixed messages: +msg262638 |
| 2016-03-29 23:30:19 | python-dev | set | nosy: +python-dev messages: +msg262637 |
| 2016-03-25 12:00:46 | vstinner | set | components: + Library (Lib) |
| 2016-03-25 12:00:35 | vstinner | create | |