[Python-checkins] r69594 - in python/trunk: Lib/distutils/tests/test_util.py Misc/NEWS

M.-A. Lemburg mal at egenix.com
Sat Feb 14 00:06:02 CET 2009


Hi Tarek,

On 2009-02-13 23:22, tarek.ziade wrote:
> Author: tarek.ziade
> Date: Fri Feb 13 23:22:03 2009
> New Revision: 69594
> 
> Log:
> Issue #2461: added tests for distutils.util
> 
> Added:
>    python/trunk/Lib/distutils/tests/test_util.py   (contents, props changed)
> Modified:
>    python/trunk/Misc/NEWS
> 
> Added: python/trunk/Lib/distutils/tests/test_util.py
> ==============================================================================
>...
> +        # macbook
> +        os.name = 'posix'
> +        sys.version = ('2.5 (r25:51918, Sep 19 2006, 08:49:13) '
> +                       '\n[GCC 4.0.1 (Apple Computer, Inc. build 5341)]')
> +        sys.platform = 'darwin'
> +        self._set_uname(('Darwin', 'macziade', '8.11.1',
> +                   ('Darwin Kernel Version 8.11.1: '
> +                    'Wed Oct 10 18:23:28 PDT 2007; '
> +                    'root:xnu-792.25.20~1/RELEASE_I386'), 'i386'))
> +
> +        self.assertEquals(get_platform(), 'macosx-10.3-i386')

The above test won't work on non-Mac OS X platforms, since distutils
does some funky stuff with the os.environ and system files which
results in the conversion to macosx-10.3 not to work on non-Mac
platforms.

Even on Macs, it makes a difference whether you have MACOSX_DEPLOYMENT_TARGET
set to 10.3, 10.4 or 10.5.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Feb 14 2009)
>>> 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 our new mxODBC.Connect Python Database Interface 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
               http://www.egenix.com/company/contact/


More information about the Python-checkins mailing list