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

Tarek Ziadé ziade.tarek at gmail.com
Sat Feb 14 00:17:54 CET 2009


On Sat, Feb 14, 2009 at 12:06 AM, M.-A. Lemburg <mal at egenix.com> wrote:
> 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.
>

Hi Marc-André,

right thanks, I have just switched to windows and work on the environ

Tarek


More information about the Python-checkins mailing list