A raise of unittest.SkipTest leaked through in the backport for issue7900,
and that causes test failes on some platforms.
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index 4c0d53a..195df26 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -308,11 +308,12 @@
shutil.rmtree(base_path)
def test_getgroups(self):
- with os.popen('id -G') as idg:
+ with os.popen('id -G 2>/dev/null') as idg:
groups = idg.read().strip()
if not groups:
- raise unittest.SkipTest("need working 'id -G'")
+ # This test needs 'id -G'
+ return
# The order of groups isn't important, hence the calls
# to sorted.