Merge "Drop group comparison from drop_privileges test"
This commit is contained in:
commit
3facd2a13b
@ -25,7 +25,6 @@ import eventlet.debug
|
|||||||
import eventlet.event
|
import eventlet.event
|
||||||
import eventlet.patcher
|
import eventlet.patcher
|
||||||
import functools
|
import functools
|
||||||
import grp
|
|
||||||
import logging
|
import logging
|
||||||
import platform
|
import platform
|
||||||
import os
|
import os
|
||||||
@ -2145,10 +2144,6 @@ log_name = %(yarr)s'''
|
|||||||
import pwd
|
import pwd
|
||||||
self.assertEqual(pwd.getpwnam(user)[5], utils.os.environ['HOME'])
|
self.assertEqual(pwd.getpwnam(user)[5], utils.os.environ['HOME'])
|
||||||
|
|
||||||
groups = [g.gr_gid for g in grp.getgrall() if user in g.gr_mem]
|
|
||||||
groups.append(pwd.getpwnam(user).pw_gid)
|
|
||||||
self.assertEqual(set(groups), set(os.getgroups()))
|
|
||||||
|
|
||||||
# reset; test same args, OSError trying to get session leader
|
# reset; test same args, OSError trying to get session leader
|
||||||
utils.os = MockOs(called_funcs=required_func_calls,
|
utils.os = MockOs(called_funcs=required_func_calls,
|
||||||
raise_funcs=('setsid',))
|
raise_funcs=('setsid',))
|
||||||
|
Loading…
Reference in New Issue
Block a user