This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients brett.cannon, eric.snow, ncoghlan, vstinner
Date 2016-03-25.12:00:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458907235.84.0.937791906936.issue26641@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-03-25 12:00:35vstinnersetrecipients: + vstinner, brett.cannon, ncoghlan, eric.snow
2016-03-25 12:00:35vstinnersetmessageid: <1458907235.84.0.937791906936.issue26641@psf.upfronthosting.co.za>
2016-03-25 12:00:35vstinnerlinkissue26641 messages
2016-03-25 12:00:35vstinnercreate