Skip to content

Commit 652560a

Browse files
committed
Relax error matching.. .. Avoid windows vs unix paths
1 parent 0af2876 commit 652560a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/func/api/test_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_get_url_ignore_scm(tmp_dir, dvc, cloud, scm):
8080
(tmp_dir / ".git").rename(tmp_dir / "gitless_environment")
8181

8282
# Test failure mode when trying to access with git
83-
with pytest.raises(SCMError, match=f"{repo_posix} is not a git repository"):
83+
with pytest.raises(SCMError, match="is not a git repository"):
8484
api.get_url("foo", repo=repo_posix)
8585

8686
# Test successful access by ignoring git

0 commit comments

Comments
 (0)