diff options
author | Ned Deily <nad@acm.org> | 2013-02-02 23:08:52 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2013-02-02 23:08:52 (GMT) |
commit | 028915e6ea331a90edc263e7894dc02785048449 (patch) | |
tree | 0fb47dff7881d524b29ae5ee88e503dba4bbe41f /Lib | |
parent | de59565f297f40571ad964587502561bdbe2282a (diff) | |
download | cpython-028915e6ea331a90edc263e7894dc02785048449.zip cpython-028915e6ea331a90edc263e7894dc02785048449.tar.gz cpython-028915e6ea331a90edc263e7894dc02785048449.tar.bz2 |
Issue #16698: Skip posix test_getgroups when built with OS X
deployment target prior to 10.6.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_posix.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index b936dda..06ad5c8 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -447,6 +447,13 @@ class PosixTester(unittest.TestCase): if ret != 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() |