Skip to content

Commit daeea14

Browse files
committed
Test that datasets root support pathlib
1 parent 53869eb commit daeea14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/datasets_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def dataset_args(self, tmpdir: str, config: Dict[str, Any]) -> Sequence[Any]:
297297
Returns:
298298
(Tuple[str]): ``tmpdir`` which corresponds to ``root`` for most datasets.
299299
"""
300-
return (tmpdir,)
300+
return (pathlib.Path(tmpdir),)
301301

302302
def inject_fake_data(self, tmpdir: str, config: Dict[str, Any]) -> Union[int, Dict[str, Any]]:
303303
"""Inject fake data for dataset into a temporary directory.

0 commit comments

Comments
 (0)