summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_posix.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index 4c0d53ac05..195df2654c 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -308,11 +308,12 @@ class PosixTester(unittest.TestCase):
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.