test_spec.py 文件源码

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

项目:speccer 作者: bensimner 项目源码 文件源码
def run_spec_nostdout(depth, p):
    stdout = io.StringIO()
    with contextlib.redirect_stdout(stdout):
        s = run_spec(depth, p)

    assert stdout.getvalue() == ''
    return s
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号