test_easy_install.py 文件源码

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

项目:Sudoku-Solver 作者: ayush1997 项目源码 文件源码
def test_setup_requires(self):
        """Regression test for Distribute issue #318

        Ensure that a package with setup_requires can be installed when
        setuptools is installed in the user site-packages without causing a
        SandboxViolation.
        """

        test_pkg = create_setup_requires_package(os.getcwd())
        test_setup_py = os.path.join(test_pkg, 'setup.py')

        try:
            with contexts.quiet():
                with self.patched_setup_context():
                    run_setup(test_setup_py, ['install'])
        except IndexError:
            # Test fails in some cases due to bugs in Python
            # See https://bitbucket.org/pypa/setuptools/issue/201
            pass
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号