From a7dd2560bae918365ba874c8eca2c0d2ca6ffc2e Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 29 Jul 2018 12:29:26 +0100 Subject: [PATCH] remove loggerDict.clear() from tearDown method, fixes #3805 It causes problems with the new caching in the py37 logger module. Removing loggerDict.clear() fixes this and makes the tests work again. Also, it does not seem to have any negative effect, neither on py36 nor on py37. See also: https://bugs.python.org/issue34269 --- src/borg/testsuite/archiver.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/borg/testsuite/archiver.py b/src/borg/testsuite/archiver.py index 75a49657c..1effbc8ba 100644 --- a/src/borg/testsuite/archiver.py +++ b/src/borg/testsuite/archiver.py @@ -278,8 +278,6 @@ class ArchiverTestCaseBase(BaseTestCase): os.chdir(self._old_wd) # note: ignore_errors=True as workaround for issue #862 shutil.rmtree(self.tmpdir, ignore_errors=True) - # destroy logging configuration - logging.Logger.manager.loggerDict.clear() setup_logging() def cmd(self, *args, **kw):