From: Jesus Cea Date: Sat, 28 Jun 2014 16:39:01 +0000 (+0200) Subject: Closes #11279: test_posix and lack of "id -G" support - less noise required? (Solaris) X-Git-Tag: v2.7.8~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd3ba7b261d021d07b8e283705c72b9ece7f9d10;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 4d58e686ec..df122f712c 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -509,7 +509,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()