1
0
Fork 0
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:
Marian Beermann 2017-05-20 22:55:17 +02:00
parent ba07225c91
commit 85aabeb9c7

View file

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