fix rmtree call for python < 3.6
@@ -21,7 +21,7 @@ def writable_file(tmpdir):
def tmp_bids(tmpdir_factory):
tmp_bids = tmpdir_factory.mktemp("tmp_bids")
yield tmp_bids
- shutil.rmtree(tmp_bids)
+ shutil.rmtree(str(tmp_bids))
# Ugly hack
shutil.rmtree(join(get_test_data_path(), '7t_trt', 'sub-Bob'))
