summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2013-03-05 17:46:21 +0200
committerGuido Günther <agx@sigxcpu.org>2013-03-22 20:54:55 +0100
commit8b80e388853eaf85d3b144e1748f9e3f99144a9a (patch)
treefb3baf081046476539efbc726cde229d4bd83421
parentfc9d019eb9af759c46a7a183d69e248275afe6bc (diff)
ComponentTestBase: close streamhandler when stopping log capture
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Guido Günther <agx@sigxcpu.org>
-rw-r--r--tests/component/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/component/__init__.py b/tests/component/__init__.py
index 1d1f9e49..1ffb77f0 100644
--- a/tests/component/__init__.py
+++ b/tests/component/__init__.py
@@ -130,6 +130,7 @@ class ComponentTestBase(object):
gbp.log.LOGGER.addHandler(self._loghandler)
elif self._log is not None:
gbp.log.LOGGER.removeHandler(self._loghandler)
+ self._loghandler.close()
self._loghandler = None
self._log.close()
self._log = None