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:
parent
9e291faed3
commit
1fa5e059a4
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue