test_utils.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:maas 作者: maas 项目源码 文件源码
def setUp(self):
        super(TestSudoUID, self).setUp()
        # Always ensure that SUDO_UID is not set in the environment.
        self.useFixture(EnvironmentVariable("SUDO_UID"))
        # We probably can't set EUID to anything we want in tests so we must
        # capture calls that attempt to do so.
        self.patch_autospec(utils, "seteuid")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号