[Python-Dev] platform module testing (original) (raw)

Brett Cannon brett at python.org
Fri May 16 01:02:47 CEST 2008


On Thu, May 15, 2008 at 2:54 PM, Benjamin Peterson <musiccomposition at gmail.com> wrote:

At the moment, the test for the platform module merely calls each function. I realize that this is a hard module to test well, but are there some assumptions we can make? For example, if sys.platform is 'java', can it be assumed that javaver is going to return something which is not empty. When sys.platform is 'darwin' and the gestalt module is present, is it reasonable to require that a empty tuple not be returned?

Sounds reasonable to me. Probably the best way to verify is to do it and see what the buildbots say.

-Brett



More information about the Python-Dev mailing list