Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
86455950
Commit
86455950
authored
Dec 26, 2009
by
Ronald Oussoren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix merge issue where I forgot to replace sys.maxint by sys.maxsize.
parent
576fd8c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
tests/test_util.py
tests/test_util.py
+30
-1
No files found.
tests/test_util.py
View file @
86455950
...
...
@@ -119,6 +119,26 @@ class UtilTestCase(support.EnvironGuard, 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'
)
maxsize
=
sys
.
maxsize
try
:
sys
.
maxsize
=
2147483647
self
.
assertEquals
(
get_platform
(),
'macosx-10.3-ppc'
)
sys
.
maxsize
=
9223372036854775807
self
.
assertEquals
(
get_platform
(),
'macosx-10.3-ppc64'
)
finally
:
sys
.
maxsize
=
maxsize
self
.
_set_uname
((
'Darwin'
,
'macziade'
,
'8.11.1'
,
(
'Darwin Kernel Version 8.11.1: '
'Wed Oct 10 18:23:28 PDT 2007; '
...
...
@@ -128,7 +148,15 @@ class UtilTestCase(support.EnvironGuard, unittest.TestCase):
get_config_vars
()[
'CFLAGS'
]
=
(
'-fno-strict-aliasing -DNDEBUG -g '
'-fwrapv -O3 -Wall -Wstrict-prototypes'
)
self
.
assertEquals
(
get_platform
(),
'macosx-10.3-i386'
)
maxsize
=
sys
.
maxsize
try
:
sys
.
maxsize
=
2147483647
self
.
assertEquals
(
get_platform
(),
'macosx-10.3-i386'
)
sys
.
maxsize
=
9223372036854775807
self
.
assertEquals
(
get_platform
(),
'macosx-10.3-x86_64'
)
finally
:
sys
.
maxsize
=
maxsize
# macbook with fat binaries (fat, universal or fat64)
os
.
environ
[
'MACOSX_DEPLOYMENT_TARGET'
]
=
'10.4'
...
...
@@ -173,6 +201,7 @@ class UtilTestCase(support.EnvironGuard, unittest.TestCase):
self
.
assertEquals
(
get_platform
(),
'macosx-10.4-%s'
%
(
arch
,))
# linux debian sarge
os
.
name
=
'posix'
sys
.
version
=
(
'2.3.5 (#1, Jul 4 2007, 17:28:59) '
...
...
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