diff --git a/src/borg/testsuite/hashindex.py b/src/borg/testsuite/hashindex.py index d4fc908e0..3f3018698 100644 --- a/src/borg/testsuite/hashindex.py +++ b/src/borg/testsuite/hashindex.py @@ -259,7 +259,7 @@ def test_size_on_disk_accurate(self): for i in range(1234): idx[H(i)] = i, i**2 with tempfile.NamedTemporaryFile() as file: - idx.write(file.name) + idx.write(file) size = os.path.getsize(file.name) assert idx.size() == size