def test_progress(): dname1, dname2, fname1, fname2 = _prepare() imageio.imread(fname1, progress=True) imageio.imread(fname1, progress=core.StdoutProgressIndicator("test")) imageio.imread(fname1, progress=None) raises(ValueError, imageio.imread, fname1, progress=3)
def test_progress(examples): dname1, dname2, fname1, fname2 = examples imageio.imread(fname1, progress=True) imageio.imread(fname1, progress=core.StdoutProgressIndicator("test")) imageio.imread(fname1, progress=None) with pytest.raises(ValueError): imageio.imread(fname1, progress=3)