浏览代码

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