mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 01:06:50 +00:00
testsuite: call setup_logging after destroying logging config
This commit is contained in:
parent
ba07225c91
commit
85aabeb9c7
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,7 @@
|
|||
from ..helpers import MAX_S
|
||||
from ..patterns import IECommand, PatternMatcher, parse_pattern
|
||||
from ..item import Item
|
||||
from ..logger import setup_logging
|
||||
from ..remote import RemoteRepository, PathNotAllowed
|
||||
from ..repository import Repository
|
||||
from . import has_lchflags, has_llfuse
|
||||
|
@ -265,6 +266,7 @@ def tearDown(self):
|
|||
shutil.rmtree(self.tmpdir, ignore_errors=True)
|
||||
# destroy logging configuration
|
||||
logging.Logger.manager.loggerDict.clear()
|
||||
setup_logging()
|
||||
|
||||
def cmd(self, *args, **kw):
|
||||
exit_code = kw.pop('exit_code', 0)
|
||||
|
|
Loading…
Reference in a new issue