Merge pull request #7125 from ThomasWaldmann/hashindex-test-win-master

Fix test_size_on_disk_accurate on Windows
This commit is contained in:
TW 2022-11-04 21:13:23 +01:00 committed by GitHub
commit c3ef6b3a72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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