Message240758
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, |
|
Date |
User |
Action |
Args |
2015-04-13 21:19:25 | Alex.LordThorsen | set | recipients:
+ Alex.LordThorsen |
2015-04-13 21:19:25 | Alex.LordThorsen | set | messageid: <1428959965.47.0.850349280401.issue23940@psf.upfronthosting.co.za> |
2015-04-13 21:19:25 | Alex.LordThorsen | link | issue23940 messages |
2015-04-13 21:19:25 | Alex.LordThorsen | create | |
|