[Python-checkins] cpython (merge 3.2 -> 3.3): Issue #16698: merge from 3.2

ned.deily python-checkins at python.org
Sun Feb 3 00:14:22 CET 2013


http://hg.python.org/cpython/rev/3653d8174b0b
changeset:   81958:3653d8174b0b
branch:      3.3
parent:      81954:98f7aaa005e6
parent:      81957:6c9f4c22fd81
user:        Ned Deily <nad at acm.org>
date:        Sat Feb 02 15:12:59 2013 -0800
summary:
  Issue #16698: merge from 3.2

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
@@ -682,6 +682,13 @@
         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()
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -577,6 +577,9 @@
 - Issue #15557: Add a test suite for the `webbrowser` module, thanks to Anton
   Barkovsky.
 
+- 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