[Python-checkins] cpython (2.7): Closes #11279: test_posix and lack of "id -G" support - less noise required?

jesus.cea python-checkins at python.org
Sat Jun 28 18:40:12 CEST 2014


http://hg.python.org/cpython/rev/4ef517041573
changeset:   91458:4ef517041573
branch:      2.7
parent:      91456:8552f3031753
user:        Jesus Cea <jcea at jcea.es>
date:        Sat Jun 28 18:39:01 2014 +0200
summary:
  Closes #11279: test_posix and lack of "id -G" support - less noise required? (Solaris)

files:
  Lib/test/test_posix.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -509,7 +509,7 @@
 
     @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()
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list