A raise of unittest.SkipTest leaked through in the backport for issue7900,

and that causes test failes on some platforms.
This commit is contained in:
Ronald Oussoren 2010-08-01 18:46:05 +00:00
parent 9e291faed3
commit 1fa5e059a4
1 changed files with 3 additions and 2 deletions

View File

@ -308,11 +308,12 @@ class PosixTester(unittest.TestCase):
shutil.rmtree(base_path)
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()
if not groups:
raise unittest.SkipTest("need working 'id -G'")
# This test needs 'id -G'
return
# The order of groups isn't important, hence the calls
# to sorted.