소스 검색

Merge pull request #7123 from RayyanAnsari/hashindex-test-win

Fix test_size_on_disk_accurate on Windows
TW 2 년 전
부모
커밋
edf12186fc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/borg/testsuite/hashindex.py

+ 1 - 1
src/borg/testsuite/hashindex.py

@@ -259,7 +259,7 @@ class HashIndexSizeTestCase(BaseTestCase):
         for i in range(1234):
             idx[H(i)] = i, i**2
         with tempfile.NamedTemporaryFile() as file:
-            idx.write(file.name)
+            idx.write(file)
             size = os.path.getsize(file.name)
         assert idx.size() == size