This commit is contained in:
Benjamin Peterson 2014-03-01 19:14:48 -05:00
commit 24a945cc6b
1 changed files with 1 additions and 1 deletions

View File

@ -1161,7 +1161,7 @@ class PosixGroupsTester(unittest.TestCase):
def test_initgroups(self):
# find missing group
g = max(self.saved_groups) + 1
g = max(self.saved_groups or [0]) + 1
name = pwd.getpwuid(posix.getuid()).pw_name
posix.initgroups(name, g)
self.assertIn(g, posix.getgroups())