aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/component/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/component/__init__.py')
-rw-r--r--tests/component/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/component/__init__.py b/tests/component/__init__.py
index 4ef22563..7abb16d1 100644
--- a/tests/component/__init__.py
+++ b/tests/component/__init__.py
@@ -153,6 +153,8 @@ class ComponentTestBase(object):
self._loghandler = gbp.log.GbpStreamHandler(self._log, False)
self._loghandler.addFilter(gbp.log.GbpFilter([gbp.log.WARNING,
gbp.log.ERROR]))
+ for hdl in gbp.log.LOGGER.handlers:
+ gbp.log.LOGGER.removeHandler(hdl)
gbp.log.LOGGER.addHandler(self._loghandler)
elif self._log is not None:
gbp.log.LOGGER.removeHandler(self._loghandler)