2
0
Эх сурвалжийг харах

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

Fix test_size_on_disk_accurate on Windows
TW 2 жил өмнө
parent
commit
c3ef6b3a72

+ 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