Lines Matching full:initgroups
98 @unittest.skipUnless(hasattr(posix, 'initgroups'),
99 "test needs os.initgroups()")
103 self.assertRaises(TypeError, posix.initgroups)
104 self.assertRaises(TypeError, posix.initgroups, None)
105 self.assertRaises(TypeError, posix.initgroups, 3, "foo")
106 self.assertRaises(TypeError, posix.initgroups, "foo", 3, object())
117 posix.initgroups(name, 13)
121 self.fail("Expected OSError to be raised by initgroups")
520 elif hasattr(posix, 'initgroups'):
522 posix.initgroups(name, self.saved_groups[0])
524 @unittest.skipUnless(hasattr(posix, 'initgroups'),
525 "test needs posix.initgroups()")
531 posix.initgroups(name, g)