From 592d6fc8d3a4a0a53d922486e11af1516d4f9015 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Fri, 26 Oct 2018 13:22:33 +0100 Subject: [PATCH] tests: fix CaptureStreamHandler on 2.6. --- tests/testlib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testlib.py b/tests/testlib.py index 63d96233..f2bad491 100644 --- a/tests/testlib.py +++ b/tests/testlib.py @@ -160,12 +160,12 @@ def sync_with_broker(broker, timeout=10.0): class CaptureStreamHandler(logging.StreamHandler): def __init__(self, *args, **kwargs): - super(CaptureStreamHandler, self).__init__(*args, **kwargs) + logging.StreamHandler.__init__(self, *args, **kwargs) self.msgs = [] def emit(self, msg): self.msgs.append(msg) - return super(CaptureStreamHandler, self).emit(msg) + logging.StreamHandler.emit(self, msg) class LogCapturer(object):