Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
07b35371
Commit
07b35371
authored
Jul 13, 2011
by
Ned Deily
Browse files
Options
Browse Files
Download
Plain Diff
Issue #12549: Correct test_platform to not fail when OS X returns 'x86_64'
as the processor type on some Mac systems.
parents
cb41cda8
58e3350b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
Doc/library/platform.rst
Doc/library/platform.rst
+0
-3
Lib/platform.py
Lib/platform.py
+1
-0
Lib/test/test_platform.py
Lib/test/test_platform.py
+1
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Doc/library/platform.rst
View file @
07b35371
...
...
@@ -232,9 +232,6 @@ Mac OS Platform
Entries which cannot be determined are set to ``''``. All tuple entries are
strings.
Documentation for the underlying :c:func:`gestalt` API is available online at
http://www.rgaros.nl/gestalt/.
Unix Platforms
--------------
...
...
Lib/platform.py
View file @
07b35371
...
...
@@ -679,6 +679,7 @@ def _mac_ver_gestalt():
0x2: 'PowerPC',
0xa: 'i386'}.get(sysa,'')
versioninfo=('', '', '')
return release,versioninfo,machine
def _mac_ver_xml():
...
...
Lib/test/test_platform.py
View file @
07b35371
...
...
@@ -191,7 +191,7 @@ class PlatformTest(unittest.TestCase):
self
.
assertEqual
(
res
[
1
],
(
''
,
''
,
''
))
if
sys
.
byteorder
==
'little'
:
self
.
assert
Equal
(
res
[
2
],
'i386'
)
self
.
assert
In
(
res
[
2
],
(
'i386'
,
'x86_64'
)
)
else
:
self
.
assertEqual
(
res
[
2
],
'PowerPC'
)
...
...
Misc/NEWS
View file @
07b35371
...
...
@@ -1020,6 +1020,9 @@ Extension Modules
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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment