From: Jesus Cea Date: Sat, 28 Jun 2014 16:39:35 +0000 (+0200) Subject: Closes #11279: test_posix and lack of "id -G" support - less noise required? (Solaris) X-Git-Tag: v3.4.2rc1~294 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61f32cb5b8358b02c45e0a256c16e505e4c371d2;p=python Closes #11279: test_posix and lack of "id -G" support - less noise required? (Solaris) --- diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index fdf5948d10..3fae2b187c 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()