mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-13 02:40:15 -04:00
testsuite: repository: close fd before deleting segment
See last commit.
This commit is contained in:
parent
05505de807
commit
9cff9d96fa
1 changed files with 1 additions and 1 deletions
|
|
@ -720,7 +720,7 @@ class RepositoryCheckTestCase(RepositoryTestCaseBase):
|
|||
fd.write(b'BOOM')
|
||||
|
||||
def delete_segment(self, segment):
|
||||
os.unlink(os.path.join(self.tmppath, 'repository', 'data', '0', str(segment)))
|
||||
self.repository.io.delete_segment(segment)
|
||||
|
||||
def delete_index(self):
|
||||
os.unlink(os.path.join(self.tmppath, 'repository', f'index.{self.get_head()}'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue