From 61f32cb5b8358b02c45e0a256c16e505e4c371d2 Mon Sep 17 00:00:00 2001 From: Jesus Cea Date: Sat, 28 Jun 2014 18:39:35 +0200 Subject: [PATCH] Closes #11279: test_posix and lack of "id -G" support - less noise required? (Solaris) --- Lib/test/test_posix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index fdf5948d108..3fae2b187cb 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -757,7 +757,7 @@ class PosixTester(unittest.TestCase): @unittest.skipUnless(hasattr(os, 'getegid'), "test needs os.getegid()") 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() ret = idg.close()