[Python-Dev] Location of tests for packages

Nick Coghlan ncoghlan at gmail.com
Wed Jan 26 02:30:27 CET 2011


On Wed, Jan 26, 2011 at 4:16 AM, Alexander Belopolsky
<alexander.belopolsky at gmail.com> wrote:
> FWIW, I am +0 on consolidating tests under Lib/test.  One of the
> reasons that I have not seen mentioned is that it is well-known that
> test package is not part of the official stdlib API and can be
> changes/restructured in backward incompatible ways. It is not obvious
> whether the same applies to say lib2to3.tests or ctypes.test.

I am +0 for the same reason as Alexander. The test subpackages should
either be moved under the test package, or, for packages with PyPI
distributed backports for previous versions, they should be prefixed
with a leading underscore to make it clear that they're private
implementation details and backwards compatibility guarantees don't
apply.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list