Преглед изворни кода

Merge pull request #7125 from ThomasWaldmann/hashindex-test-win-master

Fix test_size_on_disk_accurate on Windows
TW пре 2 година
родитељ
комит
c3ef6b3a72
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/borg/testsuite/hashindex.py

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

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