mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 17:27:31 +00:00
Merge pull request #7251 from puetzk/test_size_on_disk_accurate-flush
Fix test_size_on_disk_accurate for large st_blksize, fixes #7250
This commit is contained in:
commit
fb9717567e
1 changed files with 3 additions and 3 deletions
|
@ -258,9 +258,9 @@ def test_size_on_disk_accurate(self):
|
||||||
idx = ChunkIndex()
|
idx = ChunkIndex()
|
||||||
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 unopened_tempfile() as filepath:
|
||||||
idx.write(file)
|
idx.write(filepath)
|
||||||
size = os.path.getsize(file.fileno())
|
size = os.path.getsize(filepath)
|
||||||
assert idx.size() == size
|
assert idx.size() == size
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue