HomeSoftware Heritage

Close all open file handles in the test case

Description

Close all open file handles in the test case

dulwich.tests.test_object_store.DiskObjectStoreTests:test_add_thin_pack

to avoid

WindowsError: [Error 32] The process cannot access the file because it is
being used by another process: '...\\temp\\tmpdqhxlw\\pack\\pack-08ff98a2737425627a64fab11a4a5c53ed26bf9a.idx'

on Windows.

There should be DiskObjectStore.close() to make this practical!

Details

Provenance
Risto Kankkunen <risto.kankkunen@iki.fi>Authored on Jan 18 2012, 5:50 PM
ardumontPushed on Sep 27 2021, 5:34 PM
Parents
rPPDW0553f7723be3: Fix incorrect read/write handling in "object_store.py".
Branches
Unknown
Tags
Unknown

Event Timeline