Commit 1fa5e059 authored by Ronald Oussoren's avatar Ronald Oussoren

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

and that causes test failes on some platforms.
parent 9e291fae
...@@ -308,11 +308,12 @@ class PosixTester(unittest.TestCase): ...@@ -308,11 +308,12 @@ class PosixTester(unittest.TestCase):
shutil.rmtree(base_path) shutil.rmtree(base_path)
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()
if not groups: 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 # The order of groups isn't important, hence the calls
# to sorted. # to sorted.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment