소스 검색

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