mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-10 06:03:38 +00:00
fix RepositoryTestCaseBase.reopen method
"if self.repository" did not work as expected: - Repository has a __len__ method, so the boolean evaluation was calling that. - self.repository is also not set to None anywhere.
This commit is contained in:
parent
0947e9fb22
commit
83b2b5cb6c
1 changed files with 1 additions and 2 deletions
|
@ -41,8 +41,7 @@ class RepositoryTestCaseBase(BaseTestCase):
|
|||
shutil.rmtree(self.tmppath)
|
||||
|
||||
def reopen(self, exclusive=UNSPECIFIED):
|
||||
if self.repository:
|
||||
self.repository.close()
|
||||
self.repository.close()
|
||||
self.repository = self.open(exclusive=exclusive)
|
||||
|
||||
def add_keys(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue