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

M.-A. Lemburg mal at egenix.com
Fri May 16 15:01:43 CEST 2008


On 2008-05-15 23:54, Benjamin Peterson 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?

Yes, at least the main elements should be present and filled in.

If not, we have to fix platform.py.

-- Marc-Andre Lemburg eGenix.com

Professional Python Services directly from the Source (#1, May 16 2008)

Python/Zope Consulting and Support ... http://www.egenix.com/ mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/


:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::

eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
        Registered at Amtsgericht Duesseldorf: HRB 46611


More information about the Python-Dev mailing list