1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-24 00:37:56 +00:00

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

Fix test_size_on_disk_accurate on Windows
This commit is contained in:
TW 2022-11-04 20:15:59 +01:00 committed by GitHub
commit edf12186fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -259,7 +259,7 @@ def test_size_on_disk_accurate(self):
for i in range(1234): for i in range(1234):
idx[H(i)] = i, i**2 idx[H(i)] = i, i**2
with tempfile.NamedTemporaryFile() as file: with tempfile.NamedTemporaryFile() as file:
idx.write(file.name) idx.write(file)
size = os.path.getsize(file.name) size = os.path.getsize(file.name)
assert idx.size() == size assert idx.size() == size