Index: Lib/test/test_posix.py =================================================================== --- Lib/test/test_posix.py (revision 83123) +++ Lib/test/test_posix.py (working copy) @@ -356,9 +356,11 @@ if not groups: raise unittest.SkipTest("need working 'id -G'") + # issue9367 - the ordering shouldn't matter, so only check for deltas + groups = [int(x) for x in groups.split()] + p_getgroups = posix.getgroups() + self.assertEqual([g for g in groups if g not in p_getgroups],[]) - self.assertEqual([int(x) for x in groups.split()], posix.getgroups()) - class PosixGroupsTester(unittest.TestCase): def setUp(self):