From 0f91c862e19bb8d81c20d03e65e6e6657f7265dc Mon Sep 17 00:00:00 2001 From: Corey Bryant Date: Tue, 17 Oct 2017 15:04:45 -0400 Subject: [PATCH] Drop group comparison from drop_privileges test Drop the group comparison from drop_privileges test as it isn't valid since os.setgroups() is mocked. Change-Id: Ida15e72ae4ecdc2d6ce0d37bd99c2d86bd4e5ddc Closes-Bug: #1724342 --- test/unit/common/test_utils.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/test/unit/common/test_utils.py b/test/unit/common/test_utils.py index b0c8a2f9a1..d0ddaf1b7e 100644 --- a/test/unit/common/test_utils.py +++ b/test/unit/common/test_utils.py @@ -25,7 +25,6 @@ import eventlet.debug import eventlet.event import eventlet.patcher import functools -import grp import logging import platform import os @@ -2144,10 +2143,6 @@ log_name = %(yarr)s''' import pwd 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 utils.os = MockOs(called_funcs=required_func_calls, raise_funcs=('setsid',))