mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #16698: merge from 3.2
This commit is contained in:
commit
6d29628d6b
2 changed files with 10 additions and 0 deletions
|
@ -682,6 +682,13 @@ class PosixTester(unittest.TestCase):
|
|||
if ret is not None or not groups:
|
||||
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
|
||||
# groups, ignoring order and duplicates.
|
||||
# #10822 - it is implementation defined whether posix.getgroups()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue