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
This commit is contained in:
Thomas Waldmann 2018-07-29 12:29:26 +01:00
parent 2a4ed3f0e8
commit a7dd2560ba
1 changed files with 0 additions and 2 deletions

View File

@ -278,8 +278,6 @@ class ArchiverTestCaseBase(BaseTestCase):
os.chdir(self._old_wd) os.chdir(self._old_wd)
# note: ignore_errors=True as workaround for issue #862 # note: ignore_errors=True as workaround for issue #862
shutil.rmtree(self.tmpdir, ignore_errors=True) shutil.rmtree(self.tmpdir, ignore_errors=True)
# destroy logging configuration
logging.Logger.manager.loggerDict.clear()
setup_logging() setup_logging()
def cmd(self, *args, **kw): def cmd(self, *args, **kw):