Skip to content

Commit 896b08c

Browse files
committed
fix: test requirements
1 parent b2e3fd2 commit 896b08c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/unit/remote/test_remote_dir.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
from dvc.remote.s3 import RemoteS3
55
from dvc.utils import walk_files
6+
from dvc.path_info import PathInfo
67
from tests.remotes import GCP, S3Mocked
78

89
remotes = [GCP, S3Mocked]
@@ -136,8 +137,8 @@ def test_isfile(remote):
136137

137138
@pytest.mark.parametrize("remote", remotes, indirect=True)
138139
def test_download_dir(remote, tmpdir):
139-
path = os.fspath(tmpdir / "data")
140-
to_info = os.PathInfo(path)
140+
path = str(tmpdir / "data")
141+
to_info = PathInfo(path)
141142
remote.download(remote.path_info / "data", to_info)
142143
assert os.path.isdir(path)
143144
data_dir = tmpdir / "data"

0 commit comments

Comments
 (0)