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
028915e6
Commit
028915e6
authored
Feb 02, 2013
by
Ned Deily
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #16698: Skip posix test_getgroups when built with OS X
deployment target prior to 10.6.
parent
de59565f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
Lib/test/test_posix.py
Lib/test/test_posix.py
+7
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_posix.py
View file @
028915e6
...
@@ -447,6 +447,13 @@ class PosixTester(unittest.TestCase):
...
@@ -447,6 +447,13 @@ class PosixTester(unittest.TestCase):
if
ret
!=
None
or
not
groups
:
if
ret
!=
None
or
not
groups
:
raise
unittest
.
SkipTest
(
"need working 'id -G'"
)
raise
unittest
.
SkipTest
(
"need working 'id -G'"
)
# Issues 16698: OS X ABIs prior to 10.6 have limits on getgroups()
if
sys
.
platform
==
'darwin'
:
import
sysconfig
dt
=
sysconfig
.
get_config_var
(
'MACOSX_DEPLOYMENT_TARGET'
)
or
'10.0'
if
float
(
dt
)
<
10.6
:
raise
unittest
.
SkipTest
(
"getgroups(2) is broken prior to 10.6"
)
# 'id -G' and 'os.getgroups()' should return the same
# 'id -G' and 'os.getgroups()' should return the same
# groups, ignoring order and duplicates.
# groups, ignoring order and duplicates.
# #10822 - it is implementation defined whether posix.getgroups()
# #10822 - it is implementation defined whether posix.getgroups()
...
...
Misc/NEWS
View file @
028915e6
...
@@ -908,6 +908,9 @@ Tests
...
@@ -908,6 +908,9 @@ Tests
- Issue #14589: Update certificate chain for sha256.tbs-internet.com, fixing
- Issue #14589: Update certificate chain for sha256.tbs-internet.com, fixing
a test failure in test_ssl.
a test failure in test_ssl.
- Issue #16698: Skip posix test_getgroups when built with OS X
deployment target prior to 10.6.
Build
Build
-----
-----
...
...
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