[Python-checkins] r63460 - in python/trunk/Lib: platform.py test/test_platform.py

Brett Cannon brett at python.org
Thu May 22 00:49:28 CEST 2008


On Wed, May 21, 2008 at 3:04 PM, Benjamin Peterson
<musiccomposition at gmail.com> wrote:
> On Wed, May 21, 2008 at 5:01 PM, Brett Cannon <brett at python.org> wrote:
>> On Sun, May 18, 2008 at 1:54 PM, ronald.oussoren
>> <python-checkins at python.org> wrote:
>>> Author: ronald.oussoren
>>> Date: Sun May 18 22:54:47 2008
>>> New Revision: 63460
>>>
>>> Log:
>>> - Add unittests for platform.mac_ver (or rather, ensure that the unittest for
>>>  that function actually tests something on OSX).
>>>
>>> - Add documentation to platform.mac_ver that explains why the middle element
>>>  of the return value will not contain useful information.
>>>
>>
>> This is failing on the trunk because it assumes you built with
>> ``--enable-toolbox-glue`` and thus have gestalt available. While in
>> 3.0 since gestalt will be the only Mac-specific module it will be
>> reasonable to just always build the module on Macs (once gestalt is in
>> 3.0 this should be made sure), you can't assume that with the trunk.
>
> Is the best way of checking for toolbox-glue trying to import a Mac module?
>

Yeah. Just try to import gestalt and capture the ImportError.

-Brett


More information about the Python-checkins mailing list