This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Alex.LordThorsen
Recipients Alex.LordThorsen
Date 2015-04-13.21:19:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428959965.47.0.850349280401.issue23940@psf.upfronthosting.co.za>
In-reply-to
Content
On a fresh clone of cpython 3.5.0a0 if you run

$ ./configure --with-pydebug && make -j2
$ ./python.exe -m test.test__osx_support -j3

on osx 10.10.2 (14C109) these two test failures are reported.


    ======================================================================
    FAIL: test__supports_universal_builds (__main__.Test_OSXSupport)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/Users/alexlord/mercurial/cpython/Lib/test/test__osx_support.py", line 113, in test__supports_universal_builds
        _osx_support._supports_universal_builds())
    AssertionError: False != True

This turned out to be a problem with the line 12 in test_osx_support.py

        self.assertEqual(platform.mac_ver()[0].split('.') >= ['10', '4'],$
                             _osx_support._supports_universal_builds())$

Specifically the section

    platform.mac_ver()[0].split('.') >= ['10', '4']

Which reduced to

    ['10', '10', '2'] >= ['10', '4] which evaluated to False.

To fix this I imported distutils.version.StrictVersion and added these three lines.

+        mac_version = StrictVersion(platform.mac_ver()[0])
+        test_if_greater_version = StrictVersion('10.4')
+        self.assertEqual(mac_version >= test_if_greater_version,
History
Date User Action Args
2015-04-13 21:19:25Alex.LordThorsensetrecipients: + Alex.LordThorsen
2015-04-13 21:19:25Alex.LordThorsensetmessageid: <1428959965.47.0.850349280401.issue23940@psf.upfronthosting.co.za>
2015-04-13 21:19:25Alex.LordThorsenlinkissue23940 messages
2015-04-13 21:19:25Alex.LordThorsencreate