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 <rep...@bugs.python.org>
<http://bugs.python.org/issue26641>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to