diff options
author | Ned Deily <nad@acm.org> | 2013-02-02 23:13:45 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2013-02-02 23:13:45 (GMT) |
commit | 18b30ee88e47ef85ccc966a178bfd8f64a7f0954 (patch) | |
tree | ca651b1dd96160a803694537b928f4e693d8e896 /Lib/test/test_posix.py | |
parent | 2a2a434bd593477d8849a24e4069b66e9bd52509 (diff) | |
parent | 6d29628d6bb083f63b94efeba6103522681bc872 (diff) | |
download | cpython-18b30ee88e47ef85ccc966a178bfd8f64a7f0954.zip cpython-18b30ee88e47ef85ccc966a178bfd8f64a7f0954.tar.gz cpython-18b30ee88e47ef85ccc966a178bfd8f64a7f0954.tar.bz2 |
Issue #16698: merge from 3.3
Diffstat (limited to 'Lib/test/test_posix.py')
-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 9789830..eb1f27e 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -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() |