test_examples.py 文件源码

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

项目:nengo_spa 作者: nengo 项目源码 文件源码
def assert_noexceptions(nb_file, tmpdir):
    plt = pytest.importorskip('matplotlib.pyplot')
    pytest.importorskip("IPython", minversion="1.0")
    pytest.importorskip("jinja2")
    from nengo.utils.ipython import export_py
    nb = load_example(nb_file)
    pyfile = "%s.py" % tmpdir.join(os.path.basename(nb_file))
    export_py(nb, pyfile)
    execfile(pyfile, {})
    plt.close('all')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号