python类runmodule()的实例源码

__init__.py 文件源码 项目:chainer-deconv 作者: germanRos 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def run_module(name, file):
    """Run current test cases of the file.

    Args:
        name: __name__ attrinute of the file.
        file: __file__ attribute of the file.
    """

    if name == '__main__':

        nose.runmodule(argv=[file, '-vvs', '-x', '--pdb', '--pdb-failure'],
                       exit=False)


问题


面经


文章

微信
公众号

扫码关注公众号