mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
merge 3.3 (#20249)
This commit is contained in:
commit
24a945cc6b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue