def setUp(self):
super(TestSudoGID, self).setUp()
# Always ensure that SUDO_GID is not set in the environment.
self.useFixture(EnvironmentVariable("SUDO_GID"))
# We probably can't set EGID to anything we want in tests so we must
# capture calls that attempt to do so.
self.patch_autospec(utils, "setegid")
评论列表
文章目录