mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
Issue #12549: Correct test_platform to not fail when OS X returns 'x86_64'
as the processor type on some Mac systems. Also fix NameError in fallback _mac_ver_gestalt function. And remove out-of-date URL in docs.
This commit is contained in:
parent
bf547fd3f2
commit
0ab67ee79e
4 changed files with 5 additions and 4 deletions
|
@ -233,9 +233,6 @@ Mac OS Platform
|
|||
Entries which cannot be determined are set to ``''``. All tuple entries are
|
||||
strings.
|
||||
|
||||
Documentation for the underlying :cfunc:`gestalt` API is available online at
|
||||
http://www.rgaros.nl/gestalt/.
|
||||
|
||||
|
||||
Unix Platforms
|
||||
--------------
|
||||
|
|
|
@ -765,6 +765,7 @@ def _mac_ver_gestalt():
|
|||
0x2: 'PowerPC',
|
||||
0xa: 'i386'}.get(sysa,'')
|
||||
|
||||
versioninfo=('', '', '')
|
||||
return release,versioninfo,machine
|
||||
|
||||
def _mac_ver_xml():
|
||||
|
|
|
@ -191,7 +191,7 @@ class PlatformTest(unittest.TestCase):
|
|||
self.assertEqual(res[1], ('', '', ''))
|
||||
|
||||
if sys.byteorder == 'little':
|
||||
self.assertEqual(res[2], 'i386')
|
||||
self.assertIn(res[2], ('i386', 'x86_64'))
|
||||
else:
|
||||
self.assertEqual(res[2], 'PowerPC')
|
||||
|
||||
|
|
|
@ -101,6 +101,9 @@ Build
|
|||
Tests
|
||||
-----
|
||||
|
||||
- Issue #12549: Correct test_platform to not fail when OS X returns 'x86_64'
|
||||
as the processor type on some Mac systems.
|
||||
|
||||
- Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
|
||||
failure in name resolution.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue