Ver código fonte

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

Fix test_size_on_disk_accurate on Windows
TW 2 anos atrás
pai
commit
edf12186fc
1 arquivos alterados com 1 adições e 1 exclusões
  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