]> 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:35 +0000 (18:39 +0200)
committerJesus Cea <jcea@jcea.es>
Sat, 28 Jun 2014 16:39:35 +0000 (18:39 +0200)
Lib/test/test_posix.py

index fdf5948d108a067f7c0bfb7535f00e82c8386504..3fae2b187cb87d2f16bc8a7c9bb0500b4d830168 100644 (file)
@@ -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()