mirror of https://github.com/python/cpython
MERGE: Closes #11279: test_posix and lack of "id -G" support - less noise required? (Solaris)
This commit is contained in:
commit
41c8da95f4
|
@ -757,7 +757,7 @@ class PosixTester(unittest.TestCase):
|
||||||
|
|
||||||
@unittest.skipUnless(hasattr(os, 'getegid'), "test needs os.getegid()")
|
@unittest.skipUnless(hasattr(os, 'getegid'), "test needs os.getegid()")
|
||||||
def test_getgroups(self):
|
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()
|
groups = idg.read().strip()
|
||||||
ret = idg.close()
|
ret = idg.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue