[New-bugs-announce] [issue26641] doctest doesn't support packages
STINNER Victor
report at bugs.python.org
Fri Mar 25 08:00:35 EDT 2016
New submission from STINNER Victor:
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.
----------
files: doctest_package.patch
keywords: patch
messages: 262429
nosy: brett.cannon, eric.snow, haypo, ncoghlan
priority: normal
severity: normal
status: open
title: doctest doesn't support packages
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file42288/doctest_package.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26641>
_______________________________________
More information about the New-bugs-announce
mailing list