فهرست منبع

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