test_egg_info.py 文件源码

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

项目:setuptools_svn 作者: jaraco 项目源码 文件源码
def test_svn_tags(self):
        code, data = environment.run_setup_py(["egg_info",
                                               "--tag-svn-revision"],
                                              pypath=self.old_cwd,
                                              data_stream=1)
        if code:
            raise AssertionError(data)

        pkginfo = os.path.join('dummy.egg-info', 'PKG-INFO')
        infile = open(pkginfo, 'r')
        try:
            read_contents = infile.readlines()
        finally:
            infile.close()
            del infile

        self.assertTrue("Version: 0.1.1.post1\n" in read_contents)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号