Home | History | Annotate | Download | only in test

Lines Matching refs:initgroups

105     @unittest.skipUnless(hasattr(posix, 'initgroups'),
106 "test needs os.initgroups()")
110 self.assertRaises(TypeError, posix.initgroups)
111 self.assertRaises(TypeError, posix.initgroups, None)
112 self.assertRaises(TypeError, posix.initgroups, 3, "foo")
113 self.assertRaises(TypeError, posix.initgroups, "foo", 3, object())
124 posix.initgroups(name, 13)
128 self.fail("Expected OSError to be raised by initgroups")
1239 elif hasattr(posix, 'initgroups'):
1241 posix.initgroups(name, self.saved_groups[0])
1243 @unittest.skipUnless(hasattr(posix, 'initgroups'),
1244 "test needs posix.initgroups()")
1250 posix.initgroups(name, g)