[Python-checkins] cpython (2.7): Issue #16698: Skip posix test_getgroups when built with OS X
ned.deily
python-checkins at python.org
Sun Feb 3 00:14:19 CET 2013
http://hg.python.org/cpython/rev/c37ac05119ff
changeset: 81956:c37ac05119ff
branch: 2.7
parent: 81949:8dcf94c2fef5
user: Ned Deily <nad at acm.org>
date: Sat Feb 02 15:06:45 2013 -0800
summary:
Issue #16698: Skip posix test_getgroups when built with OS X
deployment target prior to 10.6.
files:
Lib/test/test_posix.py | 7 +++++++
Misc/NEWS | 3 +++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -452,6 +452,13 @@
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()
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -763,6 +763,9 @@
- Issue #14589: Update certificate chain for sha256.tbs-internet.com, fixing
a test failure in test_ssl.
+- Issue #16698: Skip posix test_getgroups when built with OS X
+ deployment target prior to 10.6.
+
Build
-----
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list