[TIP] Guidelines for where to put tests & how to package them

Carl Meyer carl at oddbird.net
Thu Feb 25 09:14:07 PST 2010


So the requirement you're missing is that the syntax should also be
usable on an installed package, where setup.py is no longer available
(if the author wants their tests installed and runnable by end users).
Titus' syntax can work the same in either case (dev or installed);
anything using setup.py can't.

Carl

Olemis Lang wrote:
> IOW we both are talking about the same thing, but the snippet I
> provided was the (explicit | long) version whereas yours was the
> simplified version




More information about the testing-in-python mailing list