فهرست منبع

simplified remote repo check

bigtedde 1 سال پیش
والد
کامیت
6f35f5b0a4
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/borg/testsuite/archiver/rcreate_cmd.py

+ 1 - 1
src/borg/testsuite/archiver/rcreate_cmd.py

@@ -17,7 +17,7 @@ def test_rcreate_parent_dirs(archivers, request):
     archiver = request.getfixturevalue(archivers)
     if archiver.EXE:
         pytest.skip("does not raise Exception, but sets rc==2")
-    remote_repo = True if archiver.get_kind() == "remote" else False
+    remote_repo = archiver.get_kind() == "remote"
     parent_path = os.path.join(archiver.tmpdir, "parent1", "parent2")
     repository_path = os.path.join(parent_path, "repository")
     repository_location = ("ssh://__testsuite__" + repository_path) if remote_repo else repository_path