Issue26641
Created on 2016-03-25 12:00 by vstinner, last changed 2016-03-29 23:31 by vstinner. This issue is now closed.
| 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 | |
The PEP 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 the Lib/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 changeset 32539353eb95 by Victor Stinner in branch 'default': doctest now supports packages https://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 |
| 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 | |