mirror of https://github.com/borgbackup/borg.git
Merge pull request #7125 from ThomasWaldmann/hashindex-test-win-master
Fix test_size_on_disk_accurate on Windows
This commit is contained in:
commit
c3ef6b3a72
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue