mirror of https://github.com/python/cpython
merge 3.3 (#20249)
This commit is contained in:
commit
24a945cc6b
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue