mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-04 10:39:50 +00:00
Merge pull request #7124 from ThomasWaldmann/hashindex-test-win-1.2
Fix test_size_on_disk_accurate on Windows
This commit is contained in:
commit
01b921dea4
1 changed files with 2 additions and 2 deletions
|
@ -197,8 +197,8 @@ class HashIndexSizeTestCase(BaseTestCase):
|
|||
for i in range(1234):
|
||||
idx[H(i)] = i, i**2, i**3
|
||||
with tempfile.NamedTemporaryFile() as file:
|
||||
idx.write(file.name)
|
||||
size = os.path.getsize(file.name)
|
||||
idx.write(file)
|
||||
size = os.path.getsize(file.fileno())
|
||||
assert idx.size() == size
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue