Browse Source

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

Fix test_size_on_disk_accurate on Windows
TW 2 years ago
parent
commit
c3ef6b3a72
1 changed files with 1 additions and 1 deletions
  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