test_manifest.py 文件源码

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

项目:setuptools 作者: pypa 项目源码 文件源码
def test_process_template_line_invalid(self):
        # invalid lines
        file_list = FileList()
        for action in ('include', 'exclude', 'global-include',
                       'global-exclude', 'recursive-include',
                       'recursive-exclude', 'graft', 'prune', 'blarg'):
            try:
                file_list.process_template_line(action)
            except DistutilsTemplateError:
                pass
            except Exception:
                assert False, "Incorrect error thrown"
            else:
                assert False, "Should have thrown an error"
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号