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
c64614e0
Commit
c64614e0
authored
Jan 23, 2010
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed the 64bits tests for get_platform() - mac osx
parent
0e4e7324
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
Lib/test/test_sysconfig.py
Lib/test/test_sysconfig.py
+27
-1
No files found.
Lib/test/test_sysconfig.py
View file @
c64614e0
...
...
@@ -135,6 +135,25 @@ class TestSysConfig(unittest.TestCase):
sys
.
version
=
(
'2.5 (r25:51918, Sep 19 2006, 08:49:13) '
'
\
n
[GCC 4.0.1 (Apple Computer, Inc. build 5341)]'
)
sys
.
platform
=
'darwin'
self
.
_set_uname
((
'Darwin'
,
'macziade'
,
'8.11.1'
,
(
'Darwin Kernel Version 8.11.1: '
'Wed Oct 10 18:23:28 PDT 2007; '
'root:xnu-792.25.20~1/RELEASE_I386'
),
'PowerPC'
))
os
.
environ
[
'MACOSX_DEPLOYMENT_TARGET'
]
=
'10.3'
get_config_vars
()[
'CFLAGS'
]
=
(
'-fno-strict-aliasing -DNDEBUG -g '
'-fwrapv -O3 -Wall -Wstrict-prototypes'
)
maxint
=
sys
.
maxint
try
:
sys
.
maxint
=
2147483647
self
.
assertEquals
(
get_platform
(),
'macosx-10.3-ppc'
)
sys
.
maxint
=
9223372036854775807
self
.
assertEquals
(
get_platform
(),
'macosx-10.3-ppc64'
)
finally
:
sys
.
maxint
=
maxint
self
.
_set_uname
((
'Darwin'
,
'macziade'
,
'8.11.1'
,
(
'Darwin Kernel Version 8.11.1: '
'Wed Oct 10 18:23:28 PDT 2007; '
...
...
@@ -145,7 +164,14 @@ class TestSysConfig(unittest.TestCase):
get_config_vars
()[
'CFLAGS'
]
=
(
'-fno-strict-aliasing -DNDEBUG -g '
'-fwrapv -O3 -Wall -Wstrict-prototypes'
)
self
.
assertEquals
(
get_platform
(),
'macosx-10.3-i386'
)
maxint
=
sys
.
maxint
try
:
sys
.
maxint
=
2147483647
self
.
assertEquals
(
get_platform
(),
'macosx-10.3-i386'
)
sys
.
maxint
=
9223372036854775807
self
.
assertEquals
(
get_platform
(),
'macosx-10.3-x86_64'
)
finally
:
sys
.
maxint
=
maxint
# macbook with fat binaries (fat, universal or fat64)
os
.
environ
[
'MACOSX_DEPLOYMENT_TARGET'
]
=
'10.4'
...
...
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