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')
评论列表
文章目录