test_sandbox.py 文件源码

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

项目:browser_vuln_check 作者: lcatro 项目源码 文件源码
def test_win32com(self, tmpdir):
        """
        win32com should not be prevented from caching COM interfaces
        in gen_py.
        """
        win32com = pytest.importorskip('win32com')
        gen_py = win32com.__gen_path__
        target = os.path.join(gen_py, 'test_write')
        sandbox = DirectorySandbox(str(tmpdir))
        try:
            # attempt to create gen_py file
            sandbox.run(self._file_writer(target))
        finally:
            if os.path.exists(target):
                os.remove(target)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号