From bc5a3e50e7c0880527f243f6317a6f05adb65c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Fri, 10 Jan 2025 10:07:10 +0545 Subject: [PATCH] fix tests --- tests/unit/test_ignore.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_ignore.py b/tests/unit/test_ignore.py index 7118f3e4fb..eb591dbf71 100644 --- a/tests/unit/test_ignore.py +++ b/tests/unit/test_ignore.py @@ -168,8 +168,9 @@ def test_match_ignore_from_file( ): from dvc.fs import localfs + root = os.path.sep * (2 if os.name == "nt" else 1) dvcignore_path = os.path.join( - os.path.sep, "full", "path", "to", "ignore", "file", ".dvcignore" + root, "full", "path", "to", "ignore", "file", ".dvcignore" ) dvcignore_dirname = os.path.dirname(dvcignore_path)