From 519454300796475bdd908e6bf382b62f02e16c0f Mon Sep 17 00:00:00 2001 From: "Mr. Outis" Date: Mon, 16 Dec 2019 10:25:07 -0600 Subject: [PATCH] tests/repo: windows compat --- tests/func/test_repo.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/func/test_repo.py b/tests/func/test_repo.py index ebe4466a7..f01acffb8 100644 --- a/tests/func/test_repo.py +++ b/tests/func/test_repo.py @@ -1,3 +1,5 @@ +import os + from dvc.repo import Repo from dvc.system import System from dvc.utils.compat import fspath @@ -46,7 +48,13 @@ def test_stages(tmp_dir, dvc): return set(stage.relpath for stage in Repo(str(tmp_dir)).stages) tmp_dir.dvc_gen({"file": "a", "dir/file": "b", "dir/subdir/file": "c"}) - assert stages() == {"file.dvc", "dir/file.dvc", "dir/subdir/file.dvc"} + + assert stages() == { + os.path.join("file.dvc"), + os.path.join("dir", "file.dvc"), + os.path.join("dir", "subdir", "file.dvc"), + } tmp_dir.gen(".dvcignore", "dir") + assert stages() == {"file.dvc"}