Skip to content

Commit 0d6dc8d

Browse files
temporarily mark test_git_worktree_support as xfail
1 parent a17b8d1 commit 0d6dc8d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

testing/test_git.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,14 @@ def test_git_dirty_notag(today, wd, monkeypatch):
223223

224224

225225
@pytest.mark.issue(193)
226-
def test_git_worktree_support(wd, tmpdir):
226+
@pytest.mark.xfail(reason="sometimes relative path results")
227+
def test_git_worktree_support(wd, tmp_path):
227228
wd.commit_testfile()
228-
worktree = tmpdir.join("work_tree")
229+
worktree = tmp_path / "work_tree"
229230
wd("git worktree add -b work-tree %s" % worktree)
230231

231232
res = do([sys.executable, "-m", "setuptools_scm", "ls"], cwd=worktree)
233+
assert "test.txt" in res
232234
assert str(worktree) in res
233235

234236

0 commit comments

Comments
 (0)