tests: Fix messagemock with stack argument

This commit is contained in:
Florian Bruhin 2016-07-08 20:07:24 +02:00
parent 7859df74c4
commit 52e14950f1

View File

@ -53,7 +53,7 @@ class MessageMock:
self._caplog = caplog self._caplog = caplog
self.messages = [] self.messages = []
def _handle(self, level, win_id, text, immediately=False): def _handle(self, level, win_id, text, immediately=False, *, stack=None):
log_levels = { log_levels = {
Level.error: logging.ERROR, Level.error: logging.ERROR,
Level.info: logging.INFO, Level.info: logging.INFO,