[Python-Dev] on Python's tests (and making them better)

Georg Brandl g.brandl at gmx.net
Sat Jun 7 10:51:22 CEST 2008


Guilherme Polo schrieb:
> 2008/6/6 Ron Adam <rrr at ronadam.com>:
>>
>>
>> Martin v. Löwis wrote:
>>>>
>>>> How does 1 directory scale when one day you have possibly thousands of
>>>> tests?
>>>
>>> I find this a theoretical question. It took 18 years to arrive at 500
>>> test files. Assuming a linear growth, we get 1000 tests in 2025, and
>>> 2000 tests in 2060. People can worry about reorganizing them then.
>>
>> Personally I'd like to see packages have their own test directory.  This
>> keeps things related to each other together.  Top level modules of course
>> would have their tests in the top level test directory as they are now.
>>
> 
> I really dislike having a test directory inside a python package. You
> have my -1 on that idea.

I'm also not in favor of this, especially since you still need a wrapper
in Lib/test to make them execute.

However, I can understand package maintainers wanting "everything in one
place".

Georg


-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.



More information about the Python-Dev mailing list