]> granicus.if.org Git - python/commitdiff
Closes #11279: test_posix and lack of "id -G" support - less noise required? (Solaris)
authorJesus Cea <jcea@jcea.es>
Sat, 28 Jun 2014 16:39:01 +0000 (18:39 +0200)
committerJesus Cea <jcea@jcea.es>
Sat, 28 Jun 2014 16:39:01 +0000 (18:39 +0200)
Lib/test/test_posix.py

index 4d58e686ec7579b1e596b76e6a5d4b36b2608e76..df122f712ca1c9288c7857ea53ee85995fc1d7f0 100644 (file)
@@ -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()