deps: bump scmrepo to 0.1.15; close subrepo.dvc on tests teardown (#9122)

This commit is contained in:
skshetry
2023-03-06 20:21:42 +05:45
committed by GitHub
parent 25fd274090
commit 93eea0cd42
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -405,11 +405,12 @@ def test_subdir(tmp_dir, scm, dvc, workspace):
assert resolve_rev(scm, ref_info.name) == exp
def test_subrepo(tmp_dir, scm, workspace):
def test_subrepo(tmp_dir, request, scm, workspace):
from dvc.testing.tmp_dir import make_subrepo
subrepo = tmp_dir / "dir" / "repo"
make_subrepo(subrepo, scm)
request.addfinalizer(subrepo.dvc.close)
subrepo.gen("copy.py", COPY_SCRIPT)
subrepo.gen("params.yaml", "foo: 1")