New submission from Alex Lord:
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,
--
files: test__supports_universal_builds.patch
keywords: patch
messages: 240758
nosy: Alex.Lord
priority: normal
severity: normal
status: open
title: test__supports_universal_builds failure on Python 3.5.0a0 osx 10.6
Added file:
http://bugs.python.org/file38968/test__supports_universal_builds.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23940
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com