Skip to content

Commit

Permalink
test: use a dedicated path a worktree, no re-use
Browse files Browse the repository at this point in the history
This is cleaner and helps avoid undesired side-effects that have
nothing to do with the test subject itself.
  • Loading branch information
mih committed Oct 25, 2024
1 parent 5d2b494 commit 7d2c3ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datalad_core/repo/tests/test_worktree.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ def test_work_error(tmp_path):
Worktree(test_file)


def test_secondary_worktree(gitrepo):
def test_secondary_worktree(tmp_path, gitrepo):
test_key = 'brand.new.key'
test_key2 = 'other.brand.new.key'
branch = 'dummy'
wt_path = gitrepo.parent / branch
wt_path = tmp_path / branch
call_git(
[
'-C',
Expand Down

0 comments on commit 7d2c3ce

Please sign in to comment.