discover_tests.py 文件源码

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

项目:packaging 作者: blockstack 项目源码 文件源码
def additional_tests():
    setup_file = sys.modules['__main__'].__file__
    setup_dir = os.path.abspath(os.path.dirname(setup_file))
    test_dir = os.path.join(setup_dir, 'tests')
    test_suite = unittest.defaultTestLoader.discover(test_dir)
    blacklist = []
    if '/home/travis' in __file__:
        # Skip some tests that fail on travis-ci
        blacklist.append('test_command')
    return exclude_tests(test_suite, blacklist)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号