Skip to content

Commit 56015df

Browse files
committed
BF(datalad 0.12 compat): specify dataset for get
1 parent 2713e25 commit 56015df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

heudiconv/tests/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ def fetch_data(tmpdir, dataset, getpath=None):
5252
"""
5353
from datalad import api
5454
targetdir = op.join(tmpdir, op.basename(dataset))
55-
api.install(path=targetdir,
55+
ds = api.install(path=targetdir,
5656
source='http://datasets-tests.datalad.org/{}'.format(dataset))
5757

5858
getdir = targetdir + (op.sep + getpath if getpath is not None else '')
59-
api.get(getdir)
59+
ds.get(getdir)
6060
return targetdir

0 commit comments

Comments
 (0)