> On 10 Oct 2015, at 13:06, Thomas Güttler <guettl...@thomas-guettler.de> wrote:
> 
> Am 10.10.2015 um 10:47 schrieb Wichert Akkerman:
>> Also having test code in the package can be very painful if you use tools 
>> like venusian which scan and try to import all Python files.
> 
> 
> Hi Wichert Akkerman,
> 
> can you please explain this pain? 

Importing tests often leads to problems for two reasons: 1) tests try to import 
things that are not normally installed (mock, pytest, redis-mock, etc.) which 
breaks application startup, and 2) some tests have import side-effects which 
can be fine for testing purposes, but should never trigger during normal usage.

Wichert.

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to